diff --git a/cppcheck-2.6.3.tar.gz b/cppcheck-2.6.3.tar.gz deleted file mode 100644 index b90d8f2..0000000 --- a/cppcheck-2.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a49ebb7a54356ade09867f466cb41ee4020ebf3732582762669e5c8903f16c8 -size 3880340 diff --git a/cppcheck-2.7.1.tar.gz b/cppcheck-2.7.1.tar.gz new file mode 100644 index 0000000..c60aff3 --- /dev/null +++ b/cppcheck-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4d4ec42eb214b113c6a7ca7aaf6bafa92c33029560223049b46ac12f17f54b8 +size 3939762 diff --git a/cppcheck.changes b/cppcheck.changes index f747904..7bf6fe1 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sun Mar 20 19:22:39 UTC 2022 - Dirk Müller + +- update to 2.7.1: + * Add support for container views. The view attribute has been added to the + library tag to specify the class is a view. The lifetime + analysis has been updated to use this new attribute to find dangling + lifetime containers. + * Various checker improvements. + * Fixed false positives. +- drop fix-i586.patch (obsolete) + ------------------------------------------------------------------- Sat Dec 18 08:34:22 UTC 2021 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index 2a37854..de7bee6 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,12 @@ Name: cppcheck -Version: 2.6.3 +Version: 2.7.1 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later URL: https://github.com/danmar/cppcheck Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz -Patch0: fix-i586.patch BuildRequires: cmake BuildRequires: docbook-xsl-stylesheets BuildRequires: gcc-c++ @@ -36,6 +35,7 @@ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(libpcre) Requires: python3-Pygments diff --git a/fix-i586.patch b/fix-i586.patch deleted file mode 100644 index b9fde45..0000000 --- a/fix-i586.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: cppcheck-2.4.1/test/testexprengine.cpp -=================================================================== ---- cppcheck-2.4.1.orig/test/testexprengine.cpp -+++ cppcheck-2.4.1/test/testexprengine.cpp -@@ -811,12 +811,17 @@ private: - " *x = 2;\n" - " *x = 1;\n" - "}"; -+#if INTPTR_MAX == INT64_MAX -+ // for 32bit the situation is more complex, armv7l has ffffffff, -+ // i586 has hfffffffflffffffff - so better not test this in those -+ // situations - ASSERT_EQUALS("1:28: $2=ArrayValue([$1],[:]=?,null)\n" - "1:28: $1=IntRange(1:ffffffffffffffff)\n" - "1:28: 0:memory:{x=($2,[$1],[:]=?)}\n" - "2:9: 0:memory:{x=($2,[$1],[:]=?,[0]=2)}\n" - "3:9: 0:memory:{x=($2,[$1],[:]=?,[0]=1)}\n", - trackExecution(code)); -+#endif - } - - void arrayInit1() {