Cppcheck v2.2 Release Notes
Release Date: 2020-10-03 // over 3 years ago-
๐ New checks:
- ๐ incorrect usage of mutexes and lock guards
- Dereference end iterator
- Iterating a known empty container
- outOfBounds check for iterators to containers
โ Removed 'operator=' check that ensures reference to self is returned. That is not about safety.
๐ Improved parser
- ๐ various ast fixes
๐ Clang parser
- The Clang import feature in Cppcheck should be considered to be experimental for now. There are problems.
๐ Improved bug hunting
- variable constraints
- handling of multidimension arrays
- function calls, execute functions that are in same TU
- ๐ improved handling of containers
- several improvements for uninitialized variables check
- ๐ improved analysis of for loops
- โ added a hash value for warnings that can be used for suppressions
๐ Improved data flow
- one more heuristic for ternary operators
- ๐ improved data flow for containers
CLI:
- ๐ Fixed some addon execution problems when there are spaces etc
GUI:
- ๐ Fix handling of tags
- Exclude files
cppcheck-htmlreport:
- several result files can be combined into 1 output
Suppressions:
- comments can be added at end of suppression in suppressions file