pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/cppcheck



Module Name:    pkgsrc
Committed By:   markd
Date:           Mon Aug 22 07:53:17 UTC 2022

Modified Files:
        pkgsrc/devel/cppcheck: Makefile PLIST distinfo
Removed Files:
        pkgsrc/devel/cppcheck/patches: patch-lib_programmemory.cpp
            patch-lib_symboldatabase.cpp patch-test_testsymboldatabase.cpp

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 pkgsrc/devel/cppcheck/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/cppcheck/PLIST
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/cppcheck/distinfo
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/devel/cppcheck/patches/patch-lib_programmemory.cpp \
    pkgsrc/devel/cppcheck/patches/patch-lib_symboldatabase.cpp \
    pkgsrc/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/cppcheck/Makefile
diff -u pkgsrc/devel/cppcheck/Makefile:1.85 pkgsrc/devel/cppcheck/Makefile:1.86
--- pkgsrc/devel/cppcheck/Makefile:1.85 Sat Jul  2 16:53:10 2022
+++ pkgsrc/devel/cppcheck/Makefile      Mon Aug 22 07:53:17 2022
@@ -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

Index: pkgsrc/devel/cppcheck/PLIST
diff -u pkgsrc/devel/cppcheck/PLIST:1.8 pkgsrc/devel/cppcheck/PLIST:1.9
--- pkgsrc/devel/cppcheck/PLIST:1.8     Thu Apr 16 21:50:35 2020
+++ pkgsrc/devel/cppcheck/PLIST Mon Aug 22 07:53:17 2022
@@ -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/lua.cfg
 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/sfml.cfg
 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_t2.
 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

Index: pkgsrc/devel/cppcheck/distinfo
diff -u pkgsrc/devel/cppcheck/distinfo:1.19 pkgsrc/devel/cppcheck/distinfo:1.20
--- pkgsrc/devel/cppcheck/distinfo:1.19 Tue Oct 26 10:14:27 2021
+++ pkgsrc/devel/cppcheck/distinfo      Mon Aug 22 07:53:17 2022
@@ -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



Home | Main Index | Thread Index | Old Index