[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-04-11 23:41:53
Message-ID: 1207957313.413650.24754.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 795938 by winterz:

perform leading/trailing underscore include guard checking
with strictness=all.


 M  +5 -4      includes  


--- trunk/quality/krazy2/plugins/c++/includes #795937:795938
@@ -289,10 +289,11 @@
   if ($guard eq "") {
     $Issues{'GUARD'}{'count'} = 1;
   }
-# TODO: do this only when a super-strict option is set
-#  if ($sguard =~ m/^_/ || $sguard =~ m/_$/){
-#    $Issues{'UGUARD'}{'count'} = 1;
-#  }
+  if (&strictArg() eq "all") {
+    if ($sguard =~ m/^_/ || $sguard =~ m/_$/){
+      $Issues{'UGUARD'}{'count'} = 1;
+    }
+  }
 }
 
 my($cnt) = &printResults();
[prev in list] [next in list] [prev in thread] [next in thread] 

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