We have big news for our dear C and C++ SonarQube users. Configuring the analysis requires some skills; at times, it can get technical and tedious, with a few known caveats.
We unleashed the talent of our mighty engineers, and they made our C and C++ analyzer smart enough to configure itself. Hence the name AutoConfig. As a result:
- No need to worry about compiler support
- No need to worry about build-wrapper or compilation database
- No need to know anything about the project to configure, nor C neither C++
It works as well as a manually configured analysis for most projects.
How to use it? If you donāt provide a compilation database (generated through the build-wrapper or any other way), AutoConfig will kick in, and your C and C++ code will be automatically analyzed during the scan. As simple as it gets. It was a great moment to revise our C and C++ documentation and it includes all you need to know about AutoConfig.
AutoConfig will land in SonarQube 10.6, and we are looking forward to your feedback on this ![]()
Note that this is a SonarQube-only feature, as SonarCloud benefits from Automatic analysis for C and C++.