[cfe-commits] r128512 - /cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Mar 29 16:57:41 PDT 2011


Author: akirtzidis
Date: Tue Mar 29 18:57:41 2011
New Revision: 128512

URL: http://llvm.org/viewvc/llvm-project?rev=128512&view=rev
Log:
[analyzer] Allow all checkers of a group to be enabled.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp?rev=128512&r1=128511&r2=128512&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckerProvider.cpp Tue Mar 29 18:57:41 2011
@@ -138,8 +138,9 @@
 
   if (const short *member = checkName->Members) {
     if (enable) {
-      if (collectHidden || !StaticCheckerInfo[*member].Hidden)
-        checkers.insert(&StaticCheckerInfo[*member]);
+      for (; *member != -1; ++member)
+        if (collectHidden || !StaticCheckerInfo[*member].Hidden)
+          checkers.insert(&StaticCheckerInfo[*member]);
     } else {
       for (; *member != -1; ++member)
         checkers.erase(&StaticCheckerInfo[*member]);





More information about the cfe-commits mailing list