I use a cppcheck project file from the GUI and I defined all the #ifdef I need.
But when cppcheck analyzes source files it gives me warning seven for code included inside #ifdef that I haven't defined.
The global parameter "scan all the #ifdef configurations" is disabled.
Is this expected?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use a cppcheck project file from the GUI and I defined all the #ifdef I need.
But when cppcheck analyzes source files it gives me warning seven for code included inside #ifdef that I haven't defined.
The global parameter "scan all the #ifdef configurations" is disabled.
Is this expected?
strange no it does not seem expected. it works for me.
do you import a project file in the cppcheck project file? then cppcheck uses those defines also.
no, I created a cppcheck project file by scratch.