which versions are you using (/ Community Build, Scanner, Plugin, and any relevant extension) SonarQube Server Developer Edition 2025.4.2
how is SonarQube deployed: zip
what are you trying to achieve
I get the following warning displayed in SQ server for the build of an mixed C++/C# solution.
C and C++ AutoConfig is discouraged for this project. Consider setting the properties in Project Administration > General Settings > C / C++ / Objective-C > AutoConfig Settings. Otherwise, please switch to Compilation Database based analysis for better analysis quality.
what have you tried so far to achieve this
Build is done in Azure Pipeline with vsbuild@1 and C++ properties in SonarQubePrepare@7 task. Target is Windows. (4 C# and 13++ projects are in the solution.)
as mentioned by the properties, it is C++23 code mainly with modules. Therefore there are only very few header files.
Google test is used as testing framework and test coverage largly reported to SonarQube (not all covered code unfortunately, e.g. static methods are not marked in SQ).
It is a mixed solution with C# where LibraryImport attribute is used to consume the C++ DLL.
Currently there are files (including tests)
extension
number
size
cs
15 (13 w/o tests)
12 kB (10 kB w/o tests)
ixx
48
131 kB
cpp
35 (8 without tests)
169 kB (73 kB w/o tests)
h
3
3 kB
The complete solution is build at once. Relevant parts for C++ of the build pipeline are:
Modules I have already enabled: sonar.cfamily.enableModules=true But I’ll read the linked docs again, maybe I can find something additional.
A colleague also discovered roday that code coverage behaves like a “random number generator” - a lot of lines are not color marked in the code view of SQ, and the covered lines can also change.