i'm using the Code Blocks. the Code Blocks have a cppcheck plugin. but i don't know use the cppcheck exe arguments :(
can anyone help me just for read\test my header file and not all include files using the arguments?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm using the Code Blocks. the Code Blocks have a cppcheck plugin. but i don't know use the cppcheck exe arguments :(
can anyone help me just for read\test my header file and not all include files using the arguments?
I'd write a source file that just includes the header:
Then run cppcheck on the source file
You could run cppcheck on foo.h directly:
but when running cppcheck directly on header files the analysis is not accurate.