Thiago Adams
Thiago Adams
```c struct X {int i; void * p; } int main(){ struct X x; x = (struct X){0}; static_debug(x); } ``` [sample](https://www.thradams.com/cake/playground.html?code=c3RydWN0IFgge2ludCBpOyB2b2lkICogcDsgfQppbnQgbWFpbigpewogIHN0cnVjdCBYIHg7CiAgeCA9IChzdHJ1Y3QgWCl7MH07CiAgc3RhdGljX2RlYnVnKHgpOwp9&to=-1&options=) The state must be zero and null.
```c #include #include #include void f(char * owner * p) { *p = strdup("a"); } void test2() { char * s = NULL; f(&s); //expected error } ```
In C, typedefs are just alias for types. When using auto the transpiler replaces the type by the real type, not alias. ```c #include int main(){ auto f = fopen("file.txt",...
Without assert this code should have an error. This was a regression. (missing unit test) ```c #include #include #include struct node { char * owner text; struct node* owner next;...
embed sample is not working..it is a matter of "search path" similar of include path but for embed.
Cake is warning when uninitialized object are passed as arguments. The problem this is very common. This was used to avoid using moved objects. So my idea is to create...
false warning: expression not used [-Wunused-value] ``` int main() { int a =1; int b = 2; (a = b); } ```
Today macros are expanded on the output manually using pragma expand macro I will add an alternative that is auto detect if _VAOPT was used and compiling < C23, etc.....
works ```c [[nodiscard]] int malloc(int size); ``` don't work ```c [[nodiscard]] int * malloc(int size); ```
-n Check naming conventions (it is hardcoded for its own naming convention) Today it is hardcode of it own style.