[analyzer] Don't print the config count in debug.ConfigDumper
authorKirstóf Umann <dkszelethus@gmail.com>
Tue, 19 May 2020 14:46:16 +0000 (16:46 +0200)
committerKirstóf Umann <dkszelethus@gmail.com>
Tue, 19 May 2020 14:51:14 +0000 (16:51 +0200)
I think anyone who added a checker config wondered why is there a need
to test this. Its just a chore when adding a new config, so I removed
it.

To give some historic insight though, we used to not list **all**
options, but only those explicitly added to AnalyzerOptions, such as the
ones specified on the command line. However, past this change (and
arguably even before that) this line makes little sense.

There is an argument to be made against the entirety of
analyzer-config.c test file, but since this commit fixes some builtbots
and is landing without review, I wouldn't like to be too invasive.

clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
clang/test/Analysis/analyzer-config.c

index e93c1e9..03b7cbd 100644 (file)
@@ -281,8 +281,6 @@ public:
       llvm::errs() << Keys[I]->getKey() << " = "
                    << (Keys[I]->second.empty() ? "\"\"" : Keys[I]->second)
                    << '\n';
-
-    llvm::errs() << "[stats]\n" << "num-entries = " << Keys.size() << '\n';
   }
 };
 }
index 3a6b4d2..85cd673 100644 (file)
 // CHECK-NEXT: unix.DynamicMemoryModeling:Optimistic = false
 // CHECK-NEXT: unroll-loops = false
 // CHECK-NEXT: widen-loops = false
-// CHECK-NEXT: [stats]
-// CHECK-NEXT: num-entries = 104