When cppcheck detects Syntax Error it reports about it and stops analyzing the file.
This is a required behavior since we expect to get many wrong defects after a syntax error.
However, if the syntax error is wrong, stopping C/C++ file analysis may hide correct defects in the file which is a problem in our case.
We need it because the cppcheck report of the new build is compared with the cppcheck report of the previous build in order to find new defects and resolved defects.
Wrong identification of 'syntax error' eliminates old defects from the report and thus, disrupts the comparison results.
Is it possible to add an option for the cppcheck command line to do not stop file analysis after detecting syntax error?
Thanks,
Gal.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When cppcheck detects Syntax Error it reports about it and stops analyzing the file.
This is a required behavior since we expect to get many wrong defects after a syntax error.
However, if the syntax error is wrong, stopping C/C++ file analysis may hide correct defects in the file which is a problem in our case.
We need it because the cppcheck report of the new build is compared with the cppcheck report of the previous build in order to find new defects and resolved defects.
Wrong identification of 'syntax error' eliminates old defects from the report and thus, disrupts the comparison results.
Is it possible to add an option for the cppcheck command line to do not stop file analysis after detecting syntax error?
Thanks,
Gal.