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:   adam
Date:           Fri Apr  5 15:14:03 UTC 2013

Modified Files:
        pkgsrc/devel/cppcheck: Makefile PLIST distinfo options.mk
Removed Files:
        pkgsrc/devel/cppcheck: PLIST.qt

Log Message:
Changes 1.59:

Commandline/Settings changes:
 * New option to enable warnings but not style messages: --enable=warning
 * Cppcheck used to skip includes where the header filename is enclosed in <>. 
You can now include these headers also by using -I. It is still not required to 
include these headers so feel free to try it and then include the headers that 
give you the best results. The biggest problem with including many headers is 
that analysis gets slow.

New checks:
 * New POSIX checks: pipe() buffer size, redundant calls of set/get user id, 
too big value passed to usleep(), buffer overflow when using write()
 * Storing getc() return value in char variable and comparing to EOF.
 * Detect redundant bitand operations
 * Find suspicious equality comparisons like: if(a == 0) a == 1;
 * Warn about using malloc() for classes containing virtual methods, 
std::-objects or constructors
 * Portability check that warns when using NULL as argument to variadic 
function. It has undefined behaviour on some implementations.

Improvements:
 * Improved lookup for functions and types
 * Switched to TinyXml2 as XML library
 * Improved checking for uninitialized struct members, variable scopes that can 
be reduced and unused functions

GUI:
 * Remember last path in open file dialog
 * Added command line parameter to open a results file
 * Bug in statistic calculation fixed

Additionally, lots of false positives and bugs have been fixed and several 
existing checks have been improved.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/cppcheck/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/cppcheck/PLIST
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/cppcheck/PLIST.qt
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/cppcheck/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/cppcheck/options.mk

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




Home | Main Index | Thread Index | Old Index