How do I ignore certain file types using cppcheck?
I'm using cppcheck to analyze my C ++ code. I have some .svg / .png files in my source, which makes cppcheck report many errors like this:
fileName1.svg: 2: error: Cppcheck: Invalid character number (() when these macros are defined: ''.
Is there an easy way to make cppcheck ignore certain file types?
+3
source to share
1 answer
Usually cppcheck only checks c and c ++ files.
However, if you tell cppcheck to check the .svg files, it checks them. For example:
cppcheck filename1.svg
or
cppcheck *.*
So, check your command line and make sure you don't give cspcheck.svg filenames.
If you have problems let me see your command line.
+2
source to share