[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    quality/krazy2/plugins/c++
From:       Allen Winter <winter () kde ! org>
Date:       2008-10-08 19:41:33
Message-ID: 1223494893.635259.23703.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 869341 by winterz:

eliminate false positive when using typename


 M  +2 -1      foreach  


--- trunk/quality/krazy2/plugins/c++/foreach #869340:869341
@@ -44,7 +44,7 @@
 use Krazy::Utils;
 
 my($Prog) = "foreach";
-my($Version) = "1.2";
+my($Version) = "1.3";
 
 &parseArgs();
 
@@ -90,6 +90,7 @@
     next if ($line =~ \
m/\(\s*(const\s)?(QList|QLinkedList|QPointer|QVector|QMap|QSet|shared_ptr)\s*<[\s\w\*]+>\s*[&]?\s*[:\w]+\s*,/);
                
     next if ($line =~ \
m/\(\s*(const\s)?[:\w]+(Ptr|Info|Information|Error|Type|Id)\s\w+\s*,/);  next if \
($line =~ m/\(\s*(::)?(Types)::\w+\s\w+\s*,/); +    next if ($line =~ \
m/\(\s*(const\s)?typename\sT/);  next if ($line =~ m/\(\s*[:\w]+::List\s\w+\s*,/);
 
     # see if the iterator variable is declared a pointer a couple lines above


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic