diff options
author | wiz <wiz@pkgsrc.org> | 2015-01-14 21:48:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-01-14 21:48:10 +0000 |
commit | 4f3caa096efcd3051162e09dfca12e91acc3e7b7 (patch) | |
tree | 15c8dd9c9009f6cc80904927c2a49ec41582ad05 /devel/cppcheck | |
parent | aa933700dd67f7b800ced03c21ba942c0f2bc29d (diff) | |
download | pkgsrc-4f3caa096efcd3051162e09dfca12e91acc3e7b7.tar.gz |
Update to 1.68 from Jonathan Buschmann in PR 49570.
== Cppcheck-1.68 ==
General changes:
New checks:
- Multifile checking for buffer overruns and uninitialized variables
Improvements:
- Libraries are now able to contain platform specific types
- Improved handling of function overloads
- Improved handling of integer literal suffixes
- Improved stability of template parsing
- Improved accuracy of ValueFlow analysis
- Improved checking of pointer overflow
- Support noexcept(false)
- Support attribute((noreturn))
- A bunch of additions to several Libraries, especially posix.cfg and qt.cfg
Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved.
== Cppcheck-1.67 ==
General changes:
- Library files have now a 'format' attribute. Format version 1 is assumed by default
- Cppcheck does no longer abort checking if unhandled characters (Non-ASCII) are found
New checks:
- Check for unused return values
- Detect shift by too many bits, signed integer overflow and dangerous sign conversion
- Recommend usage of expm1(), log1p(), erfc()
- Division by sizeof() as parameter to memset/memcpy/memmove/etc. as they expect a size in bytes
- Several new va_arg related checks:
-- Wrong parameter passed to va_start()
-- Reference passed to va_start()
-- Missing va_end()
-- Using va_list before it is opened
-- Subsequent calls to va_start/va_copy()
- Initialization by itself in initializer list
- Dead pointer usage when pointer alias local variable that has gone out of scope
Improvements:
- Support uniform initialization syntax (C++11)
- Much improvements to value flow analysis
- Improved AST creation (support placement new, C++-style casts, templates, operator new[], ...)
- Improved lambda support
- Support GCC extension attriute((used)) and MSVC extension __declspec(property)
- Better support for static member variables, inherited variables and namespaces
- Improved typedef support where multiple variables are declared at once
- Avoid checking code multiple times by calculating a checksum. Duplicate preprocessor configurations are eliminated by this.
- Support C++03/C 'auto' keyword
- HTML report: display 'verbose' message using clickable expandable divs
Diffstat (limited to 'devel/cppcheck')
-rw-r--r-- | devel/cppcheck/Makefile | 4 | ||||
-rw-r--r-- | devel/cppcheck/distinfo | 9 | ||||
-rw-r--r-- | devel/cppcheck/patches/patch-Makefile | 18 |
3 files changed, 6 insertions, 25 deletions
diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile index 2759ea9507a..e657dd5e8a8 100644 --- a/devel/cppcheck/Makefile +++ b/devel/cppcheck/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.30 2014/08/07 11:35:10 wiz Exp $ +# $NetBSD: Makefile,v 1.31 2015/01/14 21:48:10 wiz Exp $ -DISTNAME= cppcheck-1.66 +DISTNAME= cppcheck-1.68 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/} EXTRACT_SUFX= .tar.bz2 diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo index 87becacd9ed..684f00a1f4e 100644 --- a/devel/cppcheck/distinfo +++ b/devel/cppcheck/distinfo @@ -1,6 +1,5 @@ -$NetBSD: distinfo,v 1.9 2014/08/10 08:21:46 wiz Exp $ +$NetBSD: distinfo,v 1.10 2015/01/14 21:48:10 wiz Exp $ -SHA1 (cppcheck-1.66.tar.bz2) = 2b24bc35b113ece52be277a8800dd9685ecb7fc7 -RMD160 (cppcheck-1.66.tar.bz2) = 09786b4b8f379ec099674fc6cb863a438fe31c02 -Size (cppcheck-1.66.tar.bz2) = 1064369 bytes -SHA1 (patch-Makefile) = ad7e37e5cc22267a4524443d15f378d4a18cc444 +SHA1 (cppcheck-1.68.tar.bz2) = 5f24fe9441cd558863c770e3b230dcfaaa3d93d0 +RMD160 (cppcheck-1.68.tar.bz2) = f2162fc3072801a6cf517b728bb538e6bc53ef99 +Size (cppcheck-1.68.tar.bz2) = 1008321 bytes diff --git a/devel/cppcheck/patches/patch-Makefile b/devel/cppcheck/patches/patch-Makefile deleted file mode 100644 index 3675b1850e1..00000000000 --- a/devel/cppcheck/patches/patch-Makefile +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-Makefile,v 1.2 2014/08/10 08:21:46 wiz Exp $ - -Fix DESTDIR installation of config files. -http://5.150.254.56:443/trac-cppcheck/ticket/6043 - ---- Makefile.orig 2014-08-02 10:39:20.000000000 +0000 -+++ Makefile -@@ -263,8 +263,8 @@ install: cppcheck - install cppcheck ${BIN} - install htmlreport/cppcheck-htmlreport ${BIN} - ifdef CFGDIR -- install -d ${CFGDIR} -- install -m 644 cfg/* ${CFGDIR} -+ install -d ${DESTDIR}${CFGDIR} -+ install -m 644 cfg/* ${DESTDIR}${CFGDIR} - endif - - |