From f08159343ad9045081ffe09cb4c25cf1e49873b17bb53554e5bf701ec10cb29f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 16 Dec 2020 13:21:00 +0000 Subject: [PATCH] Accepting request 855374 from home:milsav92:branches:devel:tools - Update to version 2.3 Improved C++ parser: * types * wrong operands in ast * better simplification of templates Improved clang import, various fixes. Improved value flow analysis Fixed false positives Improved configuration in library files * boost.cfg * googletest.cfg * qt.cfg * windows.cfg * wxwidgets.cfg Added several Misra rules: * 6.1 * 6.2 * 7.2 * 7.4 * 9.2 * 10.2 * 15.4 Added platforms: * elbrus e1c+ * pic * pic8 * mips - Update to version 2.2 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 OBS-URL: https://build.opensuse.org/request/show/855374 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=72 --- cppcheck-2.1.tar.bz2 | 3 -- cppcheck-2.3.tar.bz2 | 3 ++ cppcheck.changes | 65 ++++++++++++++++++++++++++++++++++++++++++++ cppcheck.spec | 3 +- 4 files changed, 70 insertions(+), 4 deletions(-) delete mode 100644 cppcheck-2.1.tar.bz2 create mode 100644 cppcheck-2.3.tar.bz2 diff --git a/cppcheck-2.1.tar.bz2 b/cppcheck-2.1.tar.bz2 deleted file mode 100644 index 0ece738..0000000 --- a/cppcheck-2.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab26eeef039e5b58aac01efb8cb664f2cc16bf9879c61bc93cd00c95be89a5f7 -size 2480943 diff --git a/cppcheck-2.3.tar.bz2 b/cppcheck-2.3.tar.bz2 new file mode 100644 index 0000000..c0bcb6a --- /dev/null +++ b/cppcheck-2.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3a697f277bc9959c9ad4c2d04557d8cf283dc9f7ed556334e0f380cc4079c56 +size 2920800 diff --git a/cppcheck.changes b/cppcheck.changes index dcdf342..09759e1 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,68 @@ +------------------------------------------------------------------- +Sat Dec 12 15:28:36 UTC 2020 - Milan Savić + +- Update to version 2.3 + + Improved C++ parser: + * types + * wrong operands in ast + * better simplification of templates + Improved clang import, various fixes. + Improved value flow analysis + Fixed false positives + Improved configuration in library files + * boost.cfg + * googletest.cfg + * qt.cfg + * windows.cfg + * wxwidgets.cfg + Added several Misra rules: + * 6.1 + * 6.2 + * 7.2 + * 7.4 + * 9.2 + * 10.2 + * 15.4 + Added platforms: + * elbrus e1c+ + * pic + * pic8 + * mips + +- Update to version 2.2 + + 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 + ------------------------------------------------------------------- Mon Jul 13 21:16:05 UTC 2020 - Matthias Eliasson diff --git a/cppcheck.spec b/cppcheck.spec index 6f65978..954395b 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -17,7 +17,7 @@ Name: cppcheck -Version: 2.1 +Version: 2.3 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later @@ -33,6 +33,7 @@ BuildRequires: xsltproc BuildRequires: z3-devel BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(libpcre)