Commit graph

24 commits

Author SHA1 Message Date
adam
3863940b5c 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.
2013-04-05 15:14:03 +00:00
wiz
d1b820f37b Recursive bump for png-1.6. 2013-02-16 11:18:58 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
adam
f4c3b89da7 Revbump after graphics/jpeg and textproc/icu 2013-01-26 21:36:13 +00:00
ryoon
ba7896708e Update to 1.57
* Drop cmake support (upstream does not cmake anymore)
* To build GUI, qmake is needed

Changelog:
* Bug fixes
* Many improvements
* Improve translations
2012-11-29 13:52:51 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
adam
3f2cc57b2b Revbump after updating graphics/pango 2012-10-08 23:00:34 +00:00
tron
14215633d2 Mass recursive bump after the dependence fix of the "cairo" package
requested by Thomas Klausner.
2012-10-02 17:10:28 +00:00
obache
c38c120ee5 recursive bump from libffi shlib major bump
(additionaly, reset PKGREVISION of qt4-* sub packages from base qt4 update)
2012-09-15 10:03:29 +00:00
adam
b15c922bcc Revbump after updating graphics/cairo 2012-09-07 19:16:05 +00:00
wiz
ee311e3b36 Recursive bump for pcre-8.30* (shlib major change) 2012-03-03 00:11:51 +00:00
wiz
6c9c77e597 Revbump for
a) tiff update to 4.0 (shlib major change)
b) glib2 update 2.30.2 (adds libffi dependency to buildlink3.mk)

Enjoy.
2012-02-06 12:39:42 +00:00
obache
615c758c19 Recursive bump from audio/libaudiofile, x11/qt4-libs and x11/qt4-tools ABI bump. 2012-01-13 10:54:43 +00:00
sbd
e93e5d65e3 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:11:52 +00:00
wiz
f8bb588afa Update to 1.48. Ok reed except for the cmake dependency :)
Release notes for 1.48

There are no major new features in 1.48. There are more and better
checks.

New check: Wrong usage of ! operator in conditions.  Example: if
(!x == 0) {

New check: Use "throw" without arguments to rethrow exceptions.

New check: Comparison of substring with string literal will
always/never match because size doesn't match.

New check: Postfix increment of boolean

New check: Clarify condition with parantheses (when there are
assignment + comparison) Example: if (a = b > 0) {


Release notes for 1.47

It is now possible to exclude files and folders from the analysis.
Use -i on the command line (i=ignore).

Custom rules can now be created using regular expressions. To read
more about creating custom rules, see
http://sourceforge.net/projects/cppcheck/files/Articles/

A new XML format is launched. To use this format, the --xml-version=2
is used. The new xml format is incompatible with the xml format
used in previous versions. The old XML format will still be used
unless --xml-version=2 is given, so your existing scripts, tools
and plugins should still work.

New check: sizeof used on array variable that is a function parameter.
The expected bahaviour is most likely that the sizeof result is
the size of the array, but the actual sizeof result is the size of
the pointer.

New check: catching exception by value. It is better to catch by
reference for various reasons.

New check: memset calls filling 0 bytes. The given size might be
wrong.
2011-05-29 11:52:12 +00:00
obache
9ea3b36c23 recursive bump from gettext-lib shlib bump. 2011-04-22 14:40:40 +00:00
wiz
4a85d9393e png shlib name changed for png>=1.5.0, so bump PKGREVISIONs. 2011-01-13 13:53:23 +00:00
wiz
746ec6cef0 Update to 1.46.1:
Release notes for 1.46

This release has improvements and bug fixes.

We fixed 153 tickets, and that is a somewhat "usual" number for a Cppcheck release.

The report has been improved. New severities were added to make the messages more informational. The possible severities are now:
 * error
 * warning
 * style
 * performance

This has no effect on the command line flags nor the xml report. The command line flags and the xml report is fully compatible with previous versions.

These are the new checks that were added:
 * detect dangerous usage of string::c_str()
 * warn for unused variable when only doing malloc/free
 * warn when assert has side effects
 * warn for mutual exclusion over ||. The condition is always false. Example: 'if (x != 1 || x != 4)'

More details about all the fixed tickets can be found here:
http://sourceforge.net/apps/trac/cppcheck/milestone/1.46


Release notes for 1.46.1

Fix segmentation fault.
2010-12-15 13:01:38 +00:00
abs
9987fa4b3a PKGREVISION bumps for changes to gtk2, librsvg, libbonobo and libgnome 2010-11-15 22:56:08 +00:00
wiz
4d24b9b8ad More PKGREVISION bumps for pixman update. 2010-09-14 11:13:10 +00:00
wiz
7c6370ff5e Update to 1.42:
This release fixes a crash with the --errorlist option.
2010-05-02 10:54:40 +00:00
wiz
de941bf055 pkglint cleanup. 2010-02-03 09:52:32 +00:00
wiz
522957d844 Create and install manual page.
Add "qt" option for the qt4 GUI, default off.
Improve COMMENT.  Set LICENSE.

Bump PKGREVISION for additionally installed man page.
2010-02-03 09:46:42 +00:00
reed
a7dfbe1c4b new package: cppcheck
cppcheck is a tool for static C/C++ code analysis intended to
complement the checking of the compiler.  It checks for memory
leaks, mismatching allocation-deallocation, buffer overrun, unused
functions, coding style, and much more.
2010-02-02 16:35:46 +00:00