Copy link
Copy Markdown
Collaborator
FYI multiple post-in/decrements are invalid but it is valid for pre-in/decrement.
Copy link
Copy Markdown
Collaborator Author
FYI multiple post-in/decrements are invalid but it is valid for pre-in/decrement.
Hm, I get this when I try it:
tmp $ cat main.c
int main(void)
{
int x;
++++x;
}
tmp $ gcc -c main.c
main.c: In function ‘main’:
main.c:4:9: error: lvalue required as increment operand
4 | ++++x;
| ^~
Copy link
Copy Markdown
Collaborator Author
FYI multiple post-in/decrements are invalid but it is valid for pre-in/decrement.
Hm, I get this when I try it:
tmp $ cat main.c int main(void) { int x; ++++x; } tmp $ gcc -c main.c main.c: In function ‘main’: main.c:4:9: error: lvalue required as increment operand 4 | ++++x; | ^~
I suppose it can be made to work with operator overloading. I will add a language check.
Copy link
Copy Markdown
Collaborator
CMake Error (install-absolute-destination) at cli/CMakeLists.txt:42 (install):
INSTALL command given absolute DESTINATION path:
C:/Program Files/Cppcheck/bin
This error is for project developers. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it.
This is caused by a behavior change in CMake 4.4 (which is not rolled out on all runners yet).