[diagtool] explain that yellow is used to denote disabled-by-default warnings
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 27 Mar 2023 16:38:05 +0000 (09:38 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 27 Mar 2023 16:41:30 +0000 (09:41 -0700)
This is already implied, but let's just be explicit about it.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D146827

clang/tools/diagtool/TreeView.cpp

index 92d92aa..4f5d3fd 100644 (file)
@@ -127,6 +127,9 @@ public:
   void showKey() {
     out << '\n' << Colors::GREEN << "GREEN" << Colors::RESET
         << " = enabled by default";
+    out << '\n'
+        << Colors::YELLOW << "YELLOW" << Colors::RESET
+        << " = disabled by default";
     out << '\n' << Colors::RED << "RED" << Colors::RESET
         << " = unimplemented (accepted for GCC compatibility)\n\n";
   }