aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-24 20:39:38 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-24 20:39:38 +0000
commit73078642d3c32499ee573bd458af6d384fa7f6d8 (patch)
treec2bdf9127f7036196bf567a1b15956ee0d457a95
parent42f48fbdf31a7e8c516ba5eed486ff53966459fc (diff)
Revert "Go ahead and show experimental checkers in the scan-build "-h" output."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162587 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtools/scan-build/scan-build9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index 47d701da90..e2efa44bc1 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -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?