Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by www.NetBSD.org (Postfix) with ESMTP id C150F63BA4F for ; Sun, 29 May 2011 11:52:17 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8F87014A14F; Sun, 29 May 2011 11:52:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5563C14A14A for ; Sun, 29 May 2011 11:52:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ICNZKVJyFwcL for ; Sun, 29 May 2011 11:52:13 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 7471814A149 for ; Sun, 29 May 2011 11:52:13 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 42AC6175DD; Sun, 29 May 2011 11:52:13 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Sun, 29 May 2011 11:52:13 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/devel/cppcheck To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20110529115213.42AC6175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: wiz Date: Sun May 29 11:52:12 UTC 2011 Modified Files: pkgsrc/devel/cppcheck: Makefile PLIST.qt distinfo options.mk Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/cppcheck/Makefile cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/cppcheck/PLIST.qt cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/cppcheck/distinfo cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/cppcheck/options.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.