{iframe:src=http://update.sonarsource.org/plugins/cxx.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
This plugin adds basic support of C++ language into Sonar.
Current feature list:
The Cxx-Plugin has an obligatory dependency on Java (of course... the plugin itself and all runners are Java programs).
Moreover, there are optional dependencies on:
/extensions/plugins/ directory
Cxx plugin uses the following properties during analysis. See here for the ways how to pass them to the plugin.
Property | Scope | Default | Example | Description |
|---|---|---|---|---|
| sonar.cxx.suffixes.sources | System- and/or project-wide | cxx,cpp,cc,c | .C,.h | Comma separated list of file name extension to be considered as C++ source files during analysis. |
| sonar.cxx.suffixes.headers | System- and/or project-wide | hxx,hpp,hh,h | Comma separated list of file name extension to be considered as C++ source files during analysis. | |
| sonar.cxx.cppcheck.reportPath | Project-wide | cppcheck-reports/cppcheck-result-*.xml | cppcheck-report-*.xml | Ant pattern describing the path to Cppcheck reports, relative to projects root. |
| sonar.cxx.cppncss.reportPath | Project-wide | cppncss-reports/cppncss-result-*.xml | cppncss-report-*.xml | Ant pattern describing the path to CppNcss reports, relative to projects root. |
| sonar.cxx.gcovr.reportPath (<0.2) | Project-wide | gcovr-reports/gcovr-result-*.xml | gcovr-report-*.xml | Ant pattern describing the path to gcovr reports, relative to projects root. |
| sonar.cxx.rats.reportPath | Project-wide | rats-reports/rats-result-*.xml | rats-report-*.xml | Ant pattern describing the path to RATS reports, relative to projects root. |
| sonar.cxx.valgrind.reportPath | Project-wide | valgrind-reports/valgrind-result-*.xml | valgrind-report-*.xml | Ant pattern describing the path to Valgrind reports, relative to projects root. |
| sonar.cxx.vera.reportPath | Project-wide | vera++-reports/vera++-result-*.xml | vera-report-*.xml | Ant pattern describing the path to Vera++ reports, relative to projects root. |
| sonar.cxx.xunit.reportPath | Project-wide | xunit-reports/xunit-result-*.xml | xunit-report-*.xml | Ant pattern describing the path to unit test execution reports, relative to projects root. |
| sonar.cxx.pclint.reportPath | Project-wide | pclint-reports/pclint-result-*.xml | pclint-result-*.xml | Ant pattern describing the path to pc-lint reports, relative to projects root. |
| sonar.cxx.externalrules.reportPath | Project-wide | externalrules-result/externalrules-result-*.xml | externalrules-result-*.xml | Ant pattern describing the path to unit test execution reports, relative to projects root. |
| sonar.cxx.xunit.xsltURL | Project-wide | cppunit-1.x-to-junit-1.0.xsl | A name of a built in XSLT-file or an URL to an external one. Available builtins:
| |
| sonar.cxx.coverage.reportPath (>=0.2) | Project-wide | coverage-reports/coverage-*.xml | coverage-*.xml | Ant pattern describing the path of unit test coverage reports, relative to projects root. |
| sonar.cxx.coverage.itReportPath (>=0.2) | Project-wide | coverage-reports/it-coverage-*.xml | it-coverage-*.xml | Ant pattern describing the path of integration test coverage reports, relative to projects root. |
| sonar.cxx.coverage.overallReportPath (>=0.2) | Project-wide | coverage-reports/overall-coverage-*.xml | overall-coverage-*.xml | Ant pattern describing the path of overall test coverage reports, relative to projects root. |
Note: Report paths are always relative to projects path.
Following items are in the queue (more or less...):
Implement the dependency analysis (package tangle index metric)