We have dependencies to some big other projects with many possible configuration (e.g. boost). It is not necessary that CppCheck check all pathes in this projects, because mostly you have a fixed configuration. So wildcard expression would be nice. So you can use as example "-U BOOST_ -D BOOST_MSVC" to disable all defines, except special options. Only problematic: Sometimes it could be possible, that you need "-D BOOST_ -U BOOST_MSVC", so order of parameters should be respected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have dependencies to some big other projects with many possible configuration (e.g. boost). It is not necessary that CppCheck check all pathes in this projects, because mostly you have a fixed configuration. So wildcard expression would be nice. So you can use as example "-U BOOST_ -D BOOST_MSVC" to disable all defines, except special options. Only problematic: Sometimes it could be possible, that you need "-D BOOST_ -U BOOST_MSVC", so order of parameters should be respected.
hmm.. maybe.
Can you please create a ticket in our issue tracker (http://trac.cppcheck.net/) so we don't forget this.