Closed aytey closed 2 years ago
I think this "goes away" if you use the preprocessor (see #40):
avj@platypus ~/clones/psychec/preprocessor/build$ cat /tmp/moo/b.c
unsigned __INT32_TYPE__ uint32_t;
avj@platypus ~/clones/psychec/preprocessor/build$ ./cnip /tmp/moo/b.c; echo $?
b.c:0:24 error: expected `,' or `;' or `=' after declarator, got `uint32_t'
unsigned __INT32_TYPE__ uint32_t;
^
0
avj@platypus ~/clones/psychec/preprocessor/build$ ./cnip --cc-pp /tmp/moo/b.c; echo $?
0
Yes, this is a predefined macro. I created a label for this kind of errors as there are probably other and it'll be good to quickly spot them.
Fixed with #62 .
GCC version:
clang version:
Output of
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
cnip $FNAME
Content of file
psychec
version