diff options
-rw-r--r-- | test/Misc/warning-flags.c | 5 | ||||
-rw-r--r-- | tools/diagtool/ListWarnings.cpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 15b2d27b21..4edd77d94b 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -177,3 +177,8 @@ CHECK-NEXT: warn_use_out_of_scope_declaration CHECK-NEXT: warn_weak_identifier_undeclared CHECK-NEXT: warn_weak_import +The list of warnings in -Wpedenatic should NEVER grow. + +CHECK: Number in -Wpedantic (not covered by other -W flags): 71 + + diff --git a/tools/diagtool/ListWarnings.cpp b/tools/diagtool/ListWarnings.cpp index d59ffaa2a0..d554a2ef41 100644 --- a/tools/diagtool/ListWarnings.cpp +++ b/tools/diagtool/ListWarnings.cpp @@ -98,6 +98,10 @@ int ListWarnings::run(unsigned int argc, char **argv, llvm::raw_ostream &out) { out << " Average number of diagnostics per flag: " << llvm::format("%.4g", avgDiagsPerFlag) << '\n'; + out << " Number in -Wpedantic (not covered by other -W flags): " + << flagHistogram.GetOrCreateValue("pedantic").getValue().size() + << '\n'; + out << '\n'; return 0; |