| Critical The cxx plugin does not run any static analysis tools, thus all reports must be generated externally |
Here is a quick guide how to generate the reports using external tools
cppcheck
Make sure to pass all include directories as otherwise the analysis will be incomplete. Caveat: cppcheck writes the output to the standard error.
| Rule Extensions Extension of cppcheck rules is possible by using [sonar instal dir]/extensions/rules/cppcheck. See Extending Rules in C++ Analysers on how to create the rules |
Valgrind
Just tell valgrind to generate XML output. The 'tool' option isn't necessary as 'memcheck' is the default one. Make sure the binaries contain debug info.
| Rule Extensions Extension of valgrind rules is possible by using [sonar instal dir]/extensions/rules/valgrind. See Extending Rules in C++ Analysers on how to create the rules |
Vera++
The generation of vera++ reports is somewhat more tricky. We find all the files we want to be analysed, pipe this list into vera++ and pipe its output into a Perl script which finally generates the required XML.
| Rule Extensions Extension of vera++ rules is possible by using [sonar instal dir]/extensions/rules/vera++. See Extending Rules in C++ Analysers on how to create the rules |
RATS
| Rule Extensions Extension of rats rules is possible by using [sonar instal dir]/extensions/rules/rats. See Extending Rules in C++ Analysers on how to create the rules |
Pc-Lint
Please refer to product page (Official Site)
Rules for this tool are disabled by default, so they need to be enabled in the relevant quality profile before they can be imported into sonar |
| Rule Extensions Extension of pclint rules is possible by using [sonar instal dir]/extensions/rules/pclint. See Extending Rules in C++ Analysers on how to create the rules |

