pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/cppcheck cppcheck: update to 2.8
details: https://anonhg.NetBSD.org/pkgsrc/rev/7dd1115ee455
branches: trunk
changeset: 383685:7dd1115ee455
user: markd <markd%pkgsrc.org@localhost>
date: Mon Aug 22 07:53:17 2022 +0000
description:
cppcheck: update to 2.8
Cppcheck-2.8
* Lifetime analysis can now track lifetime across user-defined constructors when
they are inline and using member initializer list.
* SymbolDatabase can now deduce iterator types from how they are specified in the
library files.
* ValueFlow can evaluate class member functions that return known values.
* Improve duplicateValueTenary to not warn when used as an lvalue or when one
branch has side effects
* Fix variableScope to not warn when variables are used in lambda functions
* Fix unassignedVariable warnings when using structured bindings
* Fix redundantInitialization warning when variable is used in a lambda
* Fix variableScope warnings when using if/while init-statement
* Improve lifetime analysis when returning variadic template expressions
* Detect more statements with constStatement
* Detect variableScope for more types
* Improvements to unreadVariable
* Detect more instances of C style casts
* Warn if the return value of new is discarded
* The pre-ValueFlow uninitialized checker now uses a different ID as legacyUninitvar
* Extended library format to exclude specific function argument values
Cppcheck-2.7
* Add support for container views.
* Various checker improvements.
* Fixed false positives.
Cppcheck-2.6
* Color output for diagnostics are added for unix-based platforms.
* Added symbolic analysis for ValueFlow. A simple delta is used to compute the
difference between two unknown variable.
* Rules using the "define" tokenlist can also match #include as well.
* Library <function> tags can now use <container> tag, so free functions that
accept containers such as std::size, std::empty, std::begin, std::end, etc. can
specify the yields or action for the container.
* Library <smart-pointer> tag can specify a <unique> tag for smart pointers that
have unique ownership.
* Fixed problems when --cppcheck-build-dir is used, that should now work better.
* htmlreport can now output author information (using git blame)
* More warnings about variables that is not const but can be const
diffstat:
devel/cppcheck/Makefile | 5 +--
devel/cppcheck/PLIST | 22 ++++++++++++++-
devel/cppcheck/distinfo | 11 ++-----
devel/cppcheck/patches/patch-lib_programmemory.cpp | 14 ----------
devel/cppcheck/patches/patch-lib_symboldatabase.cpp | 14 ----------
devel/cppcheck/patches/patch-test_testsymboldatabase.cpp | 14 ----------
6 files changed, 26 insertions(+), 54 deletions(-)
diffs (164 lines):
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/Makefile
--- a/devel/cppcheck/Makefile Mon Aug 22 07:44:12 2022 +0000
+++ b/devel/cppcheck/Makefile Mon Aug 22 07:53:17 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.85 2022/07/02 16:53:10 ryoon Exp $
+# $NetBSD: Makefile,v 1.86 2022/08/22 07:53:17 markd Exp $
-DISTNAME= cppcheck-2.1
-PKGREVISION= 14
+DISTNAME= cppcheck-2.8
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
EXTRACT_SUFX= .tar.bz2
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/PLIST
--- a/devel/cppcheck/PLIST Mon Aug 22 07:44:12 2022 +0000
+++ b/devel/cppcheck/PLIST Mon Aug 22 07:53:17 2022 +0000
@@ -1,29 +1,36 @@
-@comment $NetBSD: PLIST,v 1.8 2020/04/16 21:50:35 wiz Exp $
+@comment $NetBSD: PLIST,v 1.9 2022/08/22 07:53:17 markd Exp $
bin/cppcheck
${PLIST.qt5}bin/cppcheck-gui
bin/cppcheck-htmlreport
man/man1/cppcheck.1
share/cppcheck/addons/__init__.py
-share/cppcheck/addons/cert.py
+share/cppcheck/addons/cppcheck.py
share/cppcheck/addons/cppcheckdata.py
share/cppcheck/addons/findcasts.py
share/cppcheck/addons/misc.py
share/cppcheck/addons/misra.py
+share/cppcheck/addons/misra_9.py
share/cppcheck/addons/naming.py
share/cppcheck/addons/namingng.py
+share/cppcheck/addons/runaddon.py
share/cppcheck/addons/threadsafety.py
share/cppcheck/addons/y2038.py
share/cppcheck/cfg/avr.cfg
+share/cppcheck/cfg/bento4.cfg
share/cppcheck/cfg/boost.cfg
share/cppcheck/cfg/bsd.cfg
share/cppcheck/cfg/cairo.cfg
share/cppcheck/cfg/cppcheck-lib.cfg
share/cppcheck/cfg/cppunit.cfg
share/cppcheck/cfg/daca.cfg
+share/cppcheck/cfg/dpdk.cfg
share/cppcheck/cfg/embedded_sql.cfg
+share/cppcheck/cfg/emscripten.cfg
+share/cppcheck/cfg/ginac.cfg
share/cppcheck/cfg/gnu.cfg
share/cppcheck/cfg/googletest.cfg
share/cppcheck/cfg/gtk.cfg
+share/cppcheck/cfg/icu.cfg
share/cppcheck/cfg/kde.cfg
share/cppcheck/cfg/libcerror.cfg
share/cppcheck/cfg/libcurl.cfg
@@ -32,12 +39,15 @@
share/cppcheck/cfg/mfc.cfg
share/cppcheck/cfg/microsoft_atl.cfg
share/cppcheck/cfg/microsoft_sal.cfg
+share/cppcheck/cfg/microsoft_unittest.cfg
share/cppcheck/cfg/motif.cfg
share/cppcheck/cfg/nspr.cfg
+share/cppcheck/cfg/ntl.cfg
share/cppcheck/cfg/opencv2.cfg
share/cppcheck/cfg/opengl.cfg
share/cppcheck/cfg/openmp.cfg
share/cppcheck/cfg/openssl.cfg
+share/cppcheck/cfg/pcre.cfg
share/cppcheck/cfg/posix.cfg
share/cppcheck/cfg/python.cfg
share/cppcheck/cfg/qt.cfg
@@ -47,7 +57,10 @@
share/cppcheck/cfg/sqlite3.cfg
share/cppcheck/cfg/std.cfg
share/cppcheck/cfg/tinyxml2.cfg
+share/cppcheck/cfg/vcl.cfg
share/cppcheck/cfg/windows.cfg
+share/cppcheck/cfg/wxsqlite3.cfg
+share/cppcheck/cfg/wxsvg.cfg
share/cppcheck/cfg/wxwidgets.cfg
share/cppcheck/cfg/zlib.cfg
share/cppcheck/platforms/aix_ppc64.xml
@@ -57,6 +70,11 @@
share/cppcheck/platforms/arm64-wchar_t4.xml
share/cppcheck/platforms/avr8.xml
share/cppcheck/platforms/cray_sv1.xml
+share/cppcheck/platforms/elbrus-e1cp.xml
+share/cppcheck/platforms/mips32.xml
share/cppcheck/platforms/msp430_eabi_large_datamodel.xml
+share/cppcheck/platforms/pic16.xml
+share/cppcheck/platforms/pic8-enhanced.xml
+share/cppcheck/platforms/pic8.xml
share/cppcheck/platforms/unix32-unsigned.xml
share/cppcheck/platforms/unix64-unsigned.xml
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/distinfo
--- a/devel/cppcheck/distinfo Mon Aug 22 07:44:12 2022 +0000
+++ b/devel/cppcheck/distinfo Mon Aug 22 07:53:17 2022 +0000
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.19 2021/10/26 10:14:27 nia Exp $
+$NetBSD: distinfo,v 1.20 2022/08/22 07:53:17 markd Exp $
-BLAKE2s (cppcheck-2.1.tar.bz2) = 919270b68ab13e5d798bf87cf3fa79c3b542e6d1ea5c2980c35fa9ca8c08fff0
-SHA512 (cppcheck-2.1.tar.bz2) = ddf10ea394fc7e862fefb4380e5aa4cdece4d9b135dc959c6e37c6dbdd85c77c4e3f4eac3af1b51415543eb16d3e225694963658530241250835586983dba4ae
-Size (cppcheck-2.1.tar.bz2) = 2480943 bytes
-SHA1 (patch-lib_programmemory.cpp) = 8ff73bfbfc6227697a7c0c06f4ad72b5aff54e24
-SHA1 (patch-lib_symboldatabase.cpp) = fc25ee06f9c0388214547b762c1b24740e4a4bb5
-SHA1 (patch-test_testsymboldatabase.cpp) = 3fbd081cba3ad3d0f0e41df0c78f41d92ba5da77
+BLAKE2s (cppcheck-2.8.tar.bz2) = a7fa707fb8e8fe821a4ba0a7c79fe4964a9e06d57847ae4e041ea123c0eff1f3
+SHA512 (cppcheck-2.8.tar.bz2) = 19e43e31aa41a5adfcb26d3b3fc13258ea2302611bee6e955ac0838b3dbbb4e9306719c64e66139349d4d36a24b15de37387d6422b66c7f303a5c64b0a1a6d0c
+Size (cppcheck-2.8.tar.bz2) = 3179330 bytes
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/patches/patch-lib_programmemory.cpp
--- a/devel/cppcheck/patches/patch-lib_programmemory.cpp Mon Aug 22 07:44:12 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-lib_programmemory.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
-
-gcc11 build fix
-
---- lib/programmemory.cpp.orig 2020-06-13 16:08:37.000000000 +0000
-+++ lib/programmemory.cpp
-@@ -5,6 +5,7 @@
- #include "symboldatabase.h"
- #include <algorithm>
- #include <cassert>
-+#include <limits>
-
- void ProgramMemory::setValue(nonneg int varid, const ValueFlow::Value &value)
- {
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/patches/patch-lib_symboldatabase.cpp
--- a/devel/cppcheck/patches/patch-lib_symboldatabase.cpp Mon Aug 22 07:44:12 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-lib_symboldatabase.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
-
-gcc11 build fix
-
---- lib/symboldatabase.cpp.orig 2020-06-13 16:08:37.000000000 +0000
-+++ lib/symboldatabase.cpp
-@@ -32,6 +32,7 @@
- #include <algorithm>
- #include <cassert>
- #include <climits>
-+#include <limits>
- #include <iomanip>
- #include <iostream>
- //---------------------------------------------------------------------------
diff -r 7b829e46fb62 -r 7dd1115ee455 devel/cppcheck/patches/patch-test_testsymboldatabase.cpp
--- a/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp Mon Aug 22 07:44:12 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-test_testsymboldatabase.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
-
-gcc11 build fix
-
---- test/testsymboldatabase.cpp.orig 2020-06-13 16:08:37.000000000 +0000
-+++ test/testsymboldatabase.cpp
-@@ -31,6 +31,7 @@
- #include <cstddef>
- #include <cstdint>
- #include <cstring>
-+#include <limits>
- #include <list>
- #include <map>
- #include <set>
Home |
Main Index |
Thread Index |
Old Index