I've tested the 1.67 release and have many new info messages following the pattern:
"The configuration '" + configuration + "' was not checked because its code equals another one.",
But can't figure out what the trigger criteria are for the subset of pre-processor symbols in our code that trigger this. Is there any additional documentation?
Maybe Cppcheck should write which other configuration matches.
But can't figure out what the trigger criteria are
This message is written if configuration X generates the same preprocessor output as configuration Y. Then Cppcheck only checks either X or Y not both. This saves CPU and gives you the same results.
Last edit: Daniel Marjamäki 2014-11-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wouldn't it be better to rephrase the message then? Today, after upgrading to Cppcheck 1.68, I also see lots if this messages and they are very confusing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes it sounds like we need to rephraze it. Any suggestions?
Maybe:
Configuration X generates the same preprocessor output as configuration Y. The results would be the same for these configurations. Therefore Cppcheck will skip configuration Y.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tested the 1.67 release and have many new info messages following the pattern:
"The configuration '" + configuration + "' was not checked because its code equals another one.",
But can't figure out what the trigger criteria are for the subset of pre-processor symbols in our code that trigger this. Is there any additional documentation?
Thanks!
It's not a problem. You don't need to fix this.
Maybe Cppcheck should write which other configuration matches.
This message is written if configuration X generates the same preprocessor output as configuration Y. Then Cppcheck only checks either X or Y not both. This saves CPU and gives you the same results.
Last edit: Daniel Marjamäki 2014-11-11
I see, thanks for the explanation!
Wouldn't it be better to rephrase the message then? Today, after upgrading to Cppcheck 1.68, I also see lots if this messages and they are very confusing.
Yes it sounds like we need to rephraze it. Any suggestions?
Maybe:
Configuration X generates the same preprocessor output as configuration Y. The results would be the same for these configurations. Therefore Cppcheck will skip configuration Y.
How about a way to turn that particular message off?
I suppressed this specific message in the cppcheck project file by adding this lines
This must be done by hand because the GUI doesn't list this warning in
File > Edit Project File... > Tab "Suppressions" > Button [Add]
It is a bug that it is not listed. Probably in our LIB.
However for your information it is in git head possible to right click a message and click on "Suppress selected id(s)".