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.
Compiling:
- 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
CERT:
- โ 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
MISRA:
- โ Added rule 17.2
- โ Added rule 18.4
- โ Added rule 18.7
GUI:
- Minor tweaks