From: Kirstóf Umann Date: Tue, 19 May 2020 14:46:16 +0000 (+0200) Subject: [analyzer] Don't print the config count in debug.ConfigDumper X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=268fa40daa151d3b4bff1df12b62e5dae94685d7;p=platform%2Fupstream%2Fllvm.git [analyzer] Don't print the config count in debug.ConfigDumper 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. --- diff --git a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp index e93c1e9..03b7cbd 100644 --- a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp @@ -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'; } }; } diff --git a/clang/test/Analysis/analyzer-config.c b/clang/test/Analysis/analyzer-config.c index 3a6b4d2..85cd673 100644 --- a/clang/test/Analysis/analyzer-config.c +++ b/clang/test/Analysis/analyzer-config.c @@ -107,5 +107,3 @@ // CHECK-NEXT: unix.DynamicMemoryModeling:Optimistic = false // CHECK-NEXT: unroll-loops = false // CHECK-NEXT: widen-loops = false -// CHECK-NEXT: [stats] -// CHECK-NEXT: num-entries = 104