Effect of #ifdef on the scan


(dexter) #1

Hi all,

in C/C++, what is the effect if #ifdef on the scan ? Are “disabled” parts analyzed ?


(Loïc Joly) #2

We only analyze the parts that are enabled in the configuration you used to build your code with the build wrapper.

If you want to analyze “disabled” parts too, you can create several projects, each one with a different build configuration. For instance, we use that to analyze the same source code on Linux and Windows.

(dexter) #3

Thank you for this info :slight_smile: