Unbuildable Code


(s m) #1

Is it possible to scan unbuildable code with the SonarCFamily for C/C++?

(Massimo Paladin) #2

Hi @sean,

analyzing unbuildable code can lead to bad results, why are you interested in doing that?

(s m) #3

Thanks for responding.

I may not have all of the code available to perform a complete build for example.

(Massimo Paladin) #4

Hi @sean,

for a precise and correct analysis of the source code we need all the files required for compilation, in particular all the header files used for compilation. Otherwise you would get poor result and false positives.