From e67c99d77b3889d4809c032a5a99d91c5f29ade92fdcd551d651af59f9aaee63 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 7 Jun 2022 21:32:35 +0000 Subject: [PATCH] - update to 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 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=94 --- cppcheck-2.7.5.tar.gz | 3 --- cppcheck-2.8.tar.gz | 3 +++ cppcheck.changes | 24 ++++++++++++++++++++++++ cppcheck.spec | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) delete mode 100644 cppcheck-2.7.5.tar.gz create mode 100644 cppcheck-2.8.tar.gz diff --git a/cppcheck-2.7.5.tar.gz b/cppcheck-2.7.5.tar.gz deleted file mode 100644 index fbdbb74..0000000 --- a/cppcheck-2.7.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c7ac29e57fa8b3ac7be224510200e579d5a90217e2152591ef46ffc947d8f78 -size 3940968 diff --git a/cppcheck-2.8.tar.gz b/cppcheck-2.8.tar.gz new file mode 100644 index 0000000..01354fa --- /dev/null +++ b/cppcheck-2.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57298f3b805f0eb816a04115fbc70e701f75083cfb0305a44246e365cf27606a +size 3919580 diff --git a/cppcheck.changes b/cppcheck.changes index 9d8de74..116939c 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Jun 7 21:17:15 UTC 2022 - Dirk Müller + +- update to 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 + ------------------------------------------------------------------- Tue Apr 19 13:30:47 UTC 2022 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index e4d8e3f..93ed52d 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -17,7 +17,7 @@ Name: cppcheck -Version: 2.7.5 +Version: 2.8 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later