Autoconfig for C and C++ is available on SonarQube Cloud

Hello dear C and C++ users,

We are thrilled to announce that AutoConfig for C and C++ is now available on SonarQube Cloud.

Until now, setting up a CI-based C and C++ analysis on SonarQube Cloud could require generating and maintaining a compilation database. With AutoConfig, you can run a CI-based analysis while letting the analyzer automatically deduce the compilation options, which means no compilation database needs to be generated or maintained.

This is especially useful for teams who cannot rely on Automatic Analysis, for example because they are not on GitHub or Azure DevOps, because their project is too large, because they need to analyze dependencies together with the project, because they already have CI in place, because they need code coverage as part of their setup, or because they are moving from SonarQube Server to SonarQube Cloud and already use AutoConfig in CI.

AutoConfig is also a great fit when generating a compilation database is simply not feasible, or when your compiler setup does not match the prerequisites for Compilation Database mode.

In short, AutoConfig gives you a faster path to C and C++ analysis on SonarQube Cloud: you keep the flexibility and performance of CI-based analysis, but with much less setup effort.

As a reminder, SonarQube Cloud now offers three analysis modes for CFamily projects:

  • Automatic Analysis, for the fastest setup when your repository is hosted on GitHub or Azure DevOps.

  • AutoConfig, for an easy CI-based setup without the overhead of a compilation database.

  • Compilation Database mode, when you need the highest level of control and analysis precision.

If you are analyzing C or C++ on SonarQube Cloud and were waiting for an easier CI-based setup, this feature is for you.

You can learn more in the documentation here:
Analysis modes for C/C++/Objective-C on SonarQube Cloud

As always, we would love to hear your feedback.

4 Likes