I have a directory with around 42 C++ files. When I run cppcheck using --enable=all using the directory as the path, it will find errors in only 7 of the 42 files. This seemed odd to me.
I did some individual files which were not part of the 7. When run individually, they had errors.
I also tried another approach where I generated a file list of the files and used that with --file-list. But I got the same results.
I looked at the args and didn't see anything that would indicate I am doing something incorrect.
I have a directory with around 42 C++ files. When I run cppcheck using --enable=all using the directory as the path, it will find errors in only 7 of the 42 files. This seemed odd to me.
I did some individual files which were not part of the 7. When run individually, they had errors.
I also tried another approach where I generated a file list of the files and used that with --file-list. But I got the same results.
I looked at the args and didn't see anything that would indicate I am doing something incorrect.
My command line looks like this
C:\Program Files\Cppcheck\cppcheck.exe -DCPPCHECK_DUMMY --library=android.cfg --includes-file=includes.txt -v --enable=all --check-level=exhaustive --file-list=input-file-list.txt --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unusedFunction --suppress=unmatchedSuppression --xml --output-file=foobar
Am I missing something, or is there some issue with how cppcheck is aggregating the errors.
Apologies, I reposted with a proper Subject. I also do not have the option to delete this.
Last edit: Ben 2024-10-31