From ecac19f21cea2efd11e428b5694cb39917803481687b86ab91f210da49f4506b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 17 Sep 2022 16:30:25 +0000 Subject: [PATCH] - update to 2.9: * restored check for negative allocation (new[]) and negative VLA sizes from cppcheck 1.87 (LCppC backport) * replaced hardcoded check for pipe() buffer size by library configuration option (LCppC backport) * on Windows the callstack is now being written to the output specific via "--exception-handling" * make it possible to disable the various exception handling parts via the CMake options "NO_UNIX_SIGNAL_HANDLING", "NO_UNIX_BACKTRACE_SUPPORT" and "NO_WINDOWS_SEH" * detect more redundant calls of std::string::c_str(), std::string::substr(), and unnecessary copies of containers * Add a match function to addon similiar to Token::Match used internally by cppcheck: * | for either-or tokens(ie struct|class to match either struct or class) * !! to negate a token * It supports the %any%, %assign%, %comp%, %name%, %op%, %or%, %oror%, and %var% keywords * It supports (*), {*}, [*], and <*> to match links * @ can be added to bind the token to a name * ** can be used to match until a token * Add math functions which can be used in library function definition. This enables evaluation of more math functions in ValueFlow * Further improve lifetime analysis with this pointers * Propagate condition values from outer function calls * Add debug intrinsics debug_valueflow and debug_valuetype to show more detail including source backtraces OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=98 --- cppcheck-2.8.2.tar.gz | 3 --- cppcheck-2.9.tar.gz | 3 +++ cppcheck.changes | 30 ++++++++++++++++++++++++++++++ cppcheck.spec | 2 +- 4 files changed, 34 insertions(+), 4 deletions(-) delete mode 100644 cppcheck-2.8.2.tar.gz create mode 100644 cppcheck-2.9.tar.gz diff --git a/cppcheck-2.8.2.tar.gz b/cppcheck-2.8.2.tar.gz deleted file mode 100644 index 79fb4e3..0000000 --- a/cppcheck-2.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30ba99ab54089c44b83f02e2453da046a7edff5237950d4a0eb1eba4afcb4f45 -size 3921806 diff --git a/cppcheck-2.9.tar.gz b/cppcheck-2.9.tar.gz new file mode 100644 index 0000000..9c06d83 --- /dev/null +++ b/cppcheck-2.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56aee8b5bdf936ab7adc9ab43903ba2052f088695c80f047682024a1ed0ef3f3 +size 3916529 diff --git a/cppcheck.changes b/cppcheck.changes index d584493..899da4e 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Sat Sep 17 16:28:54 UTC 2022 - Dirk Müller + +- update to 2.9: + * restored check for negative allocation (new[]) and negative VLA sizes from + cppcheck 1.87 (LCppC backport) + * replaced hardcoded check for pipe() buffer size by library configuration + option (LCppC backport) + * on Windows the callstack is now being written to the output specific via + "--exception-handling" + * make it possible to disable the various exception handling parts via the + CMake options "NO_UNIX_SIGNAL_HANDLING", "NO_UNIX_BACKTRACE_SUPPORT" and + "NO_WINDOWS_SEH" + * detect more redundant calls of std::string::c_str(), std::string::substr(), + and unnecessary copies of containers + * Add a match function to addon similiar to Token::Match used internally by + cppcheck: + * | for either-or tokens(ie struct|class to match either struct or class) + * !! to negate a token + * It supports the %any%, %assign%, %comp%, %name%, %op%, %or%, %oror%, and %var% keywords + * It supports (*), {*}, [*], and <*> to match links + * @ can be added to bind the token to a name + * ** can be used to match until a token + * Add math functions which can be used in library function definition. This + enables evaluation of more math functions in ValueFlow + * Further improve lifetime analysis with this pointers + * Propagate condition values from outer function calls + * Add debug intrinsics debug_valueflow and debug_valuetype to show more + detail including source backtraces + ------------------------------------------------------------------- Sun Jul 17 16:14:50 UTC 2022 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index c0ed0d5..e64b810 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -17,7 +17,7 @@ Name: cppcheck -Version: 2.8.2 +Version: 2.9 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later