forked from pool/cppcheck
Accepting request 963325 from devel:tools
- update to 2.7.1: * Add support for container views. The view attribute has been added to the <container> 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) OBS-URL: https://build.opensuse.org/request/show/963325 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=22
This commit is contained in:
commit
9a22f74629
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7a49ebb7a54356ade09867f466cb41ee4020ebf3732582762669e5c8903f16c8
|
|
||||||
size 3880340
|
|
3
cppcheck-2.7.1.tar.gz
Normal file
3
cppcheck-2.7.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f4d4ec42eb214b113c6a7ca7aaf6bafa92c33029560223049b46ac12f17f54b8
|
||||||
|
size 3939762
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 20 19:22:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.7.1:
|
||||||
|
* Add support for container views. The view attribute has been added to the
|
||||||
|
<container> 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 <dmueller@suse.com>
|
Sat Dec 18 08:34:22 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cppcheck
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,13 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: cppcheck
|
Name: cppcheck
|
||||||
Version: 2.6.3
|
Version: 2.7.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A tool for static C/C++ code analysis
|
Summary: A tool for static C/C++ code analysis
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
URL: https://github.com/danmar/cppcheck
|
URL: https://github.com/danmar/cppcheck
|
||||||
Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch0: fix-i586.patch
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -36,6 +35,7 @@ BuildRequires: pkgconfig(Qt5Core)
|
|||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
BuildRequires: pkgconfig(Qt5Help)
|
BuildRequires: pkgconfig(Qt5Help)
|
||||||
BuildRequires: pkgconfig(Qt5PrintSupport)
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
||||||
|
BuildRequires: pkgconfig(Qt5Test)
|
||||||
BuildRequires: pkgconfig(Qt5Widgets)
|
BuildRequires: pkgconfig(Qt5Widgets)
|
||||||
BuildRequires: pkgconfig(libpcre)
|
BuildRequires: pkgconfig(libpcre)
|
||||||
Requires: python3-Pygments
|
Requires: python3-Pygments
|
||||||
|
@ -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() {
|
|
Loading…
Reference in New Issue
Block a user