Path to this page:
Subject: CVS commit: pkgsrc/devel/cppcheck
From: Mark Davies
Date: 2022-08-22 09:53:17
Message id: 20220822075317.8975AFB1A@cvs.NetBSD.org
Log Message:
cppcheck: update to 2.8
Cppcheck-2.8
* Lifetime analysis can now track lifetime across user-defined constructors when
they are inline and using member initializer list.
* SymbolDatabase can now deduce iterator types from how they are specified in the
library files.
* ValueFlow can evaluate class member functions that return known values.
* Improve duplicateValueTenary to not warn when used as an lvalue or when one
branch has side effects
* Fix variableScope to not warn when variables are used in lambda functions
* Fix unassignedVariable warnings when using structured bindings
* Fix redundantInitialization warning when variable is used in a lambda
* Fix variableScope warnings when using if/while init-statement
* Improve lifetime analysis when returning variadic template expressions
* Detect more statements with constStatement
* Detect variableScope for more types
* Improvements to unreadVariable
* Detect more instances of C style casts
* Warn if the return value of new is discarded
* The pre-ValueFlow uninitialized checker now uses a different ID as legacyUninitvar
* Extended library format to exclude specific function argument values
Cppcheck-2.7
* Add support for container views.
* Various checker improvements.
* Fixed false positives.
Cppcheck-2.6
* Color output for diagnostics are added for unix-based platforms.
* Added symbolic analysis for ValueFlow. A simple delta is used to compute the
difference between two unknown variable.
* Rules using the "define" tokenlist can also match #include as well.
* Library <function> tags can now use <container> tag, so free \
functions that
accept containers such as std::size, std::empty, std::begin, std::end, etc. can
specify the yields or action for the container.
* Library <smart-pointer> tag can specify a <unique> tag for smart \
pointers that
have unique ownership.
* Fixed problems when --cppcheck-build-dir is used, that should now work better.
* htmlreport can now output author information (using git blame)
* More warnings about variables that is not const but can be const
Files: