Skip to content

CXX Analysis Parameters

guwirth edited this page Feb 23, 2021 · 15 revisions

The general Analysis Parameters are described in the SonarQube documentation. There is also the information where these can be set. This page describes the additional configuration parameters of the cxx plugin.

In principle, a distinction can be made between parameters for the configuration of the CXX language (see Scan Source Code) and the sensors for reading in reports. The report sensors can also be used together with the SonarCFamily plugin.

CXX Language

Mandatory Parameters

key description
sonar.cxx.file.suffixes --
sonar.cxx.errorRecoveryEnabled --

Preprocessor Parameters

key description
sonar.cxx.defines --
sonar.cxx.includeDirectories --
sonar.cxx.forceIncludes --
sonar.cxx.jsonCompilationDatabase --
sonar.cxx.msbuild.encoding --
sonar.cxx.msbuild.reportPaths --

CXX Metrics

key description
sonar.cxx.metric.api.file.suffixes --
sonar.cxx.metric.cpd.ignoreIdentifiers --
sonar.cxx.metric.cpd.ignoreLiterals --
sonar.cxx.metric.func.complexity.threshold --
sonar.cxx.metric.func.size.threshold --

CXX Sensors

XLS Transformation

key description
sonar.cxx.xslt --

Test

key description
sonar.cxx.nunit.reportPaths --
sonar.cxx.vstest.reportPaths --
sonar.cxx.xunit.reportPaths --

Coverage

key description
sonar.cxx.bullseye.reportPaths --
sonar.cxx.cobertura.reportPaths --
sonar.cxx.ctctxt.encoding --
sonar.cxx.ctctxt.reportPaths --
sonar.cxx.vscoveragexml.reportPaths --

Compiler

key description
sonar.cxx.gcc.encoding --
sonar.cxx.gcc.regex --
sonar.cxx.gcc.reportPaths --
sonar.cxx.vc.encoding --
sonar.cxx.vc.regex --
sonar.cxx.vc.reportPaths --

Tools

key description
sonar.cxx.clangsa.reportPaths --
sonar.cxx.clangtidy.encoding --
sonar.cxx.clangtidy.reportPaths --
sonar.cxx.cppcheck.reportPaths --
sonar.cxx.drmemory.encoding --
sonar.cxx.drmemory.reportPaths --
sonar.cxx.infer.reportPaths --
sonar.cxx.pclint.reportPaths --
sonar.cxx.rats.reportPaths --
sonar.cxx.reportPaths --
sonar.cxx.valgrind.reportPaths --
sonar.cxx.vera.reportPaths --

Generic

key description
sonar.cxx.other.reportPaths --
sonar.cxx.other.rules --
Clone this wiki locally