Hi,
I want to run a specific set of rules on different projects so I have a file containing rules that should not be applied.
Are all rules listed with cppcheck.exe --errorlist the same that are enabled with --enable=all ?
I am also using cppcheclipse, but in the preference file of the plugin I can enable some rules that are not in the list given by --errorlist, like bitwiseOnBoolean, bufferAccessOutOfBounds,bufferNotZeroTerminated,clarifyCondition,ConfigurationNotChecked,divideSizeof,duplicateBranch
Are those rules missing from the --error-list or do I have a mismatch between versions of cppcheck and cppcheclipse?
I am using cppcheck 1.6.8 on w7x86 and cppcheclipse 0.9.9 on eclipse 4.5.0
Last edit: Brady Eric 2016-03-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note that in the outdated XML output format version 1 (which is unfortunately still cppcheck's default) the inconclusive errors are not shown.
Use --errorlist --xml-version=2 for complete output.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cppcheck 1.68 is outdated, 1.72 is the latest version. But cppchecklipse 0.9.9 is from 2012, when cppcheck 1.57 was the latest version. If it contains its own instance of cppcheck, then mismatches between cppcheclipse and cppcheck 1.68 are very likely.
I would recommend to update your copy of cppcheck and use the standalone version instead of the eclipse plugin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your answer, I have the standalone version of cppcheck, the cppcheclipse plugin does not conatin cppcheck.
My work environment does not allow me to update software (easily), sadly I'm stuck with the versions mentionned in my first post.
You mention that cppcheclipse 0.9.9 was for cppcheck 1.57, I think it is likely where my problem is, I will try to install matchin version on another computer if I can find one to pinpoint the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to run a specific set of rules on different projects so I have a file containing rules that should not be applied.
Are all rules listed with
cppcheck.exe --errorlist
the same that are enabled with--enable=all
?I am also using cppcheclipse, but in the preference file of the plugin I can enable some rules that are not in the list given by --errorlist, like
bitwiseOnBoolean, bufferAccessOutOfBounds,bufferNotZeroTerminated,clarifyCondition,ConfigurationNotChecked,divideSizeof,duplicateBranch
Are those rules missing from the
--error-list
or do I have a mismatch between versions of cppcheck and cppcheclipse?I am using cppcheck 1.6.8 on w7x86 and cppcheclipse 0.9.9 on eclipse 4.5.0
Last edit: Brady Eric 2016-03-17
Note that in the outdated XML output format version 1 (which is unfortunately still cppcheck's default) the inconclusive errors are not shown.
Use
--errorlist --xml-version=2
for complete output.cppcheck 1.68 is outdated, 1.72 is the latest version. But cppchecklipse 0.9.9 is from 2012, when cppcheck 1.57 was the latest version. If it contains its own instance of cppcheck, then mismatches between cppcheclipse and cppcheck 1.68 are very likely.
I would recommend to update your copy of cppcheck and use the standalone version instead of the eclipse plugin.
Thanks for your answer, I have the standalone version of cppcheck, the cppcheclipse plugin does not conatin cppcheck.
My work environment does not allow me to update software (easily), sadly I'm stuck with the versions mentionned in my first post.
You mention that cppcheclipse 0.9.9 was for cppcheck 1.57, I think it is likely where my problem is, I will try to install matchin version on another computer if I can find one to pinpoint the issue.