I did a silly mistake ! I check the files and save on the same file I think something happen like cache when I delete previouse report and check with -DOMITBAD it worked!!!
Thank you for your response.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everybody.
I check juliet c/c++ 1.2 files with cppcheck by this command:
It's ok I get the warnings and errors.but my code has some macro like these:
Now I want to Cppcheck ignore my codes that they are between macro "#ifndef OMITBAD".
I try -U or -D but they don't work.
Is it possible ignore code between some macros in CppCheck?
Thank you.
As far as I see the code should be skipped if you try
-DOMITBAD
. Doesn't that work?Do you think the output is wrong somehow when options
-E -DOMITBAD
is used?I did a silly mistake ! I check the files and save on the same file I think something happen like cache when I delete previouse report and check with
-DOMITBAD
it worked!!!Thank you for your response.