It's ok I get the warnings and errors.but my code has some macro like these:
#ifndef OMITBADvoidbad(){badStructdata;badStruct&dataRef=data;linkedListhead={&head,&head};/* This simulates a Microsoft-style linked list insertion */data.list.next=head.next;data.list.prev=head.prev;head.next=&data.list;head.prev=&data.list;{#ifdef _WIN32WSADATAwsaData;intwsaDataInit=0;#endifand.......
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 -DOMITBADis 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
-DOMITBADit worked!!!Thank you for your response.