Cppcheck v1.89 Release Notes

Release Date: 2019-09-01 // over 1 year ago
  • ๐Ÿ’ป Command line:

    • โš  The default warning message format was changed. The new format is similar to GCC. If you want to get warnings in the old format, add --template=cppcheck1 to the command line.


    • From now on, use FILESDIR instead of CFGDIR to specify the path for Cppcheck data files. The readme.txt describes the available flags.

    ๐Ÿ‘Œ Improved checking:

    • ๐Ÿ‘Œ improved value flow analysis for pointer aliases
    • ๐Ÿ‘Œ improved checking for uninitialized variables/structs
    • ๐Ÿ‘ better checking of smart pointers
    • ๐Ÿ‘ better checking of global variables
    • Added Cppcheck annotations cppcheck_low (VALUE) and cppcheck_high (VALUE)
    • shadow variables; warn when argument is shadowed
    • warn if local reference variable can be const


    • โž• Added API01-C: Avoid laying out strings in memory directly before sensitive data
    • โž• Added MSC24-C: Do not use deprecated or obsolescent functions
    • โž• Added STR11-C: Do not specify the bound of a character array initialized with a string literal


    • โž• Added rule 17.2
    • โž• Added rule 18.4
    • โž• Added rule 18.7


    • Minor tweaks