danmar/cppcheck — comment on commit 1e8fc71f8e0de853c100ff3af0a45aed52afa814
File:  line 0
By makulik:

No it's not really the intended behavior. As I mentioned there are still two testcases open, that leave the code for certain #ifdef pathes in the code when a matching #define tag appears in the parsed code. Do you have a #define HAVE_CONFIG_H somewhere in the parsed code? Currently the implementation for -U just covers defines that are intended to be provided via compiler option -D. I have to get more familiar with cppcheck's preprocessing code to fix this.