Indexed but not analyzed source files and LOC calculation

I would need some clarification on LOC calculation for C/C++ projects using build wrapper and sonar-scanner.
If some files are indexed by sonar-scanner but are not analyzed (not compiled when capturing build settings with build wrapper), are they counted as LOC for the license?

For some exotic project layouts, it can be very difficult and error prone to narrow the focus to analyze just the files that are actually compiled. I would obviously try to narrow the focus as much as I can, but I was wondering if I could relax this filtering a little bit where it may be problematic without affecting the LOC for the license.

Hi,

Welcome to the community!

Only the files that are compiled are included in analysis (and therefore in LOC). That’s why you need to do a full clean before you build, so all your files get built/analyzed.

 
HTH,
Ann