The problem seems to be that there is at least one syntax error which causes an internal AST error.
Cppcheck does not further analyze a file when such an error is detected.
Code that is checked by Cppcheck should be compilable to get useful results.
main.cpp from the zip file looks like this:
hi,
i compared cppcheck 1.84 till 1.88 on the enclosed test source code
(including cppcheck reports)
according to my tests, it started to malfunction at version 1.85.
please check, these are critical errors no more detected on that sample
(arrayIndexOutOfBounds, memleak, mismatchAllocDealloc)
thank you
BR,
GKA
NB: please rename the attached file extension "extZ" to "zip", i could
not pass the "Blacklisted file extension detected"
Last edit: GKA 2019-07-19
The problem seems to be that there is at least one syntax error which causes an internal AST error.
Cppcheck does not further analyze a file when such an error is detected.
Code that is checked by Cppcheck should be compilable to get useful results.
main.cpp from the zip file looks like this:
Output from g++:
Cppcheck 1.89 dev (HEAD) outputs:
It's all good now.
I was not aware that cppcheck won't do any further with syntax errors, I was just throwing some bad code. Thank you for the hint.