From cfae264b0817f9043ebc1e3a4fce242ad373ce5aaceccbef023d435412c5e37f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 20 Mar 2022 19:31:39 +0000 Subject: [PATCH 1/3] - 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. OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=85 --- cppcheck-2.6.3.tar.gz | 3 --- cppcheck-2.7.1.tar.gz | 3 +++ cppcheck.changes | 11 +++++++++++ cppcheck.spec | 7 ++++--- 4 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 cppcheck-2.6.3.tar.gz create mode 100644 cppcheck-2.7.1.tar.gz 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..cfe6b8e 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +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. + ------------------------------------------------------------------- Sat Dec 18 08:34:22 UTC 2021 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index 2a37854..86d8660 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,13 @@ 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 +# Patch0: fix-i586.patch BuildRequires: cmake BuildRequires: docbook-xsl-stylesheets BuildRequires: gcc-c++ @@ -36,6 +36,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 From d64e1eabebe176a94b83b2fabfa29b1e4895af9929359ff88d3cbdb5cbbc30d0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 20 Mar 2022 19:39:15 +0000 Subject: [PATCH 2/3] - drop fix-i586.patch (obsolete) OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=86 --- cppcheck.changes | 1 + cppcheck.spec | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cppcheck.changes b/cppcheck.changes index cfe6b8e..7bf6fe1 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -8,6 +8,7 @@ Sun Mar 20 19:22:39 UTC 2022 - Dirk Müller 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 86d8660..de7bee6 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -23,7 +23,6 @@ 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++ From 8c55f44465a6a2104a3649c3e26c92f18a0c3b01ec80f30b962ae2a248bbcdd6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 20 Mar 2022 19:39:22 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=87 --- fix-i586.patch | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 fix-i586.patch 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() {