[llvm] f8b2cbf - [llvm] Small typo in the instruction comments of WithColor header

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 10:31:33 PDT 2023


Author: Dirk MG Seynhaeve
Date: 2023-06-06T10:31:13-07:00
New Revision: f8b2cbf7ed4c900ffe1d2c30086aee73f7ab1e8a

URL: https://github.com/llvm/llvm-project/commit/f8b2cbf7ed4c900ffe1d2c30086aee73f7ab1e8a
DIFF: https://github.com/llvm/llvm-project/commit/f8b2cbf7ed4c900ffe1d2c30086aee73f7ab1e8a.diff

LOG: [llvm] Small typo in the instruction comments of WithColor header

Fix a small but misleading/confusing typo in the comments (which shows
up in the doxygen documentation):

Black -> BLACK (the enumeration is case-sensitive).

Differential revision: https://reviews.llvm.org/D151598

Added: 
    

Modified: 
    llvm/include/llvm/Support/WithColor.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/WithColor.h b/llvm/include/llvm/Support/WithColor.h
index b249f34da1fa6..2054005928476 100644
--- a/llvm/include/llvm/Support/WithColor.h
+++ b/llvm/include/llvm/Support/WithColor.h
@@ -60,7 +60,7 @@ class WithColor {
   /// @param Mode Enable, disable or compute whether to use colors.
   WithColor(raw_ostream &OS, HighlightColor S,
             ColorMode Mode = ColorMode::Auto);
-  /// To be used like this: WithColor(OS, raw_ostream::Black) << "text";
+  /// To be used like this: WithColor(OS, raw_ostream::BLACK) << "text";
   /// @param OS The output stream
   /// @param Color ANSI color to use, the special SAVEDCOLOR can be used to
   /// change only the bold attribute, and keep colors untouched


        


More information about the llvm-commits mailing list