From kde-commits Wed Jun 30 21:50:31 2010 From: Allen Winter Date: Wed, 30 Jun 2010 21:50:31 +0000 To: kde-commits Subject: quality/krazy2/extras/c++ Message-Id: <20100630215031.166ECAC8E2 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127793409504308 SVN commit 1144813 by winterz: skip lines starting with #define M +2 -1 kdebug --- trunk/quality/krazy2/extras/c++/kdebug #1144812:1144813 @@ -4,7 +4,7 @@ if 0; # not running under some shell ############################################################################### # Sanity check plugin for the Krazy project. # -# Copyright (C) 2008-2009 by Allen Winter # +# Copyright (C) 2008-2010 by Allen Winter # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -85,6 +85,7 @@ $acnt = $ecnt = $mcnt = 0; last; } + next if ($line =~ m/^\s*#\s*define\s*.*/); next if ($line =~ m+//.*[Kk]razy:exclude=.*$Prog+); $line =~ s+//.*++; #skip C++ comments