which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Enterpeise edition version 9.9.1 lts
how is SonarQube deployed: zip, Docker, Helm
SonarQube deployed by zip
what are you trying to achieve
C++ projects are not scanning when using GHS complier in SonarQube Enterprise version
what have you tried so far to achieve this
We using Build-wrapper for C++ project scanning, in our one of the project we are using GHS as a complier.
while scanning the build-wrapper is not capturing the inputs.
Unfortunately, we don’t support the GHS compiler in build-wrapper or compilation database mode, and we have an open ticket to track that here: [CPP-2239] - Jira.
Starting with SonarQube 10.6, you can try to use Automatic Configuration (AutoConfig) analysis mode, which is easy to setup and doesn’t require a configuration property or a supported compiler. For more information about it, you can also refer to this blog post.
If you didn’t see – last year we introduced support in SonarQube Server for a feature called C/C++ AutoConfig! Removing the question of supported compiler altogether.
This is available in SonarQube Server v10.6+, although you should really target at least v2025.1.