Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleRule 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 

Updated Rules

VersionRules
1.58<rule> 
  <key>redundantCopy</key> 
  <configkey>redundantCopy</configkey> 
  <name>Buffer 'var' is being written before its old content has been used</name> 
  <description> 
    Buffer 'var' is being written before its old content has been used. 
  </description> 
</rule>

 

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.

...