Im using cppcheck to analyze my c++ code. I have some .svg/.png files in my source, which makes cppcheck report a lot of errors of the following type:
fileName1.svg:2: error: Cppcheck: Invalid number of character (() when these macros are defined: ''.
Is there an easy way I can make cppcheck ignore files of a certain type?
Normally cppcheck checks only C and C++ files.
However, if you tell cppcheck to check
.svg
files it will check those. For example:or
So check your command line and make sure you are not giving cppcheck
.svg
filenames.If you have problems, let me see your command line.