update cppcheck to 1.69
General changes:
- Added flag --platform=native, when it is used type sizes and behaviour of
host system are used
- Backward compatibility for Libary files is now working. Future cppcheck
versions will be able to use libraries written for previous versions
- Windows 32 bit builds now set /LARGEADDRESSAWARE, so that they can use up to
4 GiB
New checks:
- Detect bad bitmask checks (usage of | where & should be used)
- Suggest usage of "explicit" for constructors with a single parameter
- Suggest usage of make_shared/make_unique
- Warn about usage of malloc with auto_ptr
- Detect redundant pointer operations like &*ptr
Improvements:
- Support std::array (C++11)
- Detect same expressions in both branches of a ternary operator
- New <container>-tags in libraries to configure STL (and similar) container
types
- Several improvements to ValueFlow analysis (for example support for default
function arguments)
- Improved buffer overrun and memory leak checking
- Removed a bunch of redundant checking code
- Removed several simplifications
- Stronger matching of library functions
- Lots of additions to std.cfg and posix.cfg
- New library for Microsoft SAL (microsoft_sal.cfg)
- Improved C++11 template parsing (">>" as closing brackets, variadic templates)
- Added statistics to htmlreport
GUI:
- Fixed language selection
Additionally, lots of false positives and bugs have been fixed and
several existing checks have been improved.
OK?
? cppcheck-1.69.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cppcheck/Makefile,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 Makefile
--- Makefile 7 Jan 2015 04:15:51 -0000 1.27
+++ Makefile 2 May 2015 02:56:35 -0000
@@ -2,7 +2,7 @@
COMMENT = C/C++ static checker
-DISTNAME = cppcheck-1.68
+DISTNAME = cppcheck-1.69
CATEGORIES = devel
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/cppcheck/distinfo,v
retrieving revision 1.22
diff -u -p -u -p -r1.22 distinfo
--- distinfo 7 Jan 2015 04:15:51 -0000 1.22
+++ distinfo 2 May 2015 02:56:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (cppcheck-1.68.tar.gz) = 75JS9y57H8IENF1TGOVgnTdw5hlkc8FFqE9YYvelI3o=
-SIZE (cppcheck-1.68.tar.gz) = 1316595
+SHA256 (cppcheck-1.69.tar.gz) = /mHJ32TrX/FwuGYjcEWq5kJ9R+3P+baEq6wtEftNeCY=
+SIZE (cppcheck-1.69.tar.gz) = 1366770
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/cppcheck/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 PLIST
--- pkg/PLIST 13 Aug 2014 15:13:33 -0000 1.5
+++ pkg/PLIST 2 May 2015 02:56:37 -0000
@@ -4,7 +4,10 @@
share/cppcheck/
share/cppcheck/cfg/
share/cppcheck/cfg/avr.cfg
+share/cppcheck/cfg/cppcheck-cfg.rng
+share/cppcheck/cfg/gnu.cfg
share/cppcheck/cfg/gtk.cfg
+share/cppcheck/cfg/microsoft_sal.cfg
share/cppcheck/cfg/posix.cfg
share/cppcheck/cfg/qt.cfg
share/cppcheck/cfg/sdl.cfg