]> granicus.if.org Git - clang/commitdiff
Revert "Go ahead and show experimental checkers in the scan-build "-h" output."
authorTed Kremenek <kremenek@apple.com>
Fri, 24 Aug 2012 20:39:38 +0000 (20:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 24 Aug 2012 20:39:38 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162587 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/scan-build

index 47d701da90eb7b55056c8d1fa22a8fe8284cc767..e2efa44bc1a62a6cddc66933689a1af26a2332ae 100755 (executable)
@@ -1154,7 +1154,16 @@ if (!$foundCheckers) {
 }
 else {
   print("\nAVAILABLE CHECKERS:\n\n");
+  my $skip = 0;
   while(<FROM_CHILD>) {
+    if (/experimental/) {
+      $skip = 1;
+      next;
+    }
+    if ($skip) {
+      next if (!/^\s\s[^\s]/);
+      $skip = 0;
+    }
     s/^\s\s//;
     if (/^([^\s]+)/) {
       # Is the checker enabled?