[PATCH] D151598: Small typo in the instruction comments of WithColor header
Dirk MG Seynhaeve via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 16:11:27 PDT 2023
dseynhae created this revision.
dseynhae added a reviewer: JDevlieghere.
Herald added a project: All.
dseynhae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fix a small but misleading/confusing typo in the comments (which shows up in the doxygen documentation):
`Black` -> `BLACK `(the enumeration is case-sensitive).
https://reviews.llvm.org/D151598
Files:
llvm/include/llvm/Support/WithColor.h
Index: llvm/include/llvm/Support/WithColor.h
===================================================================
--- llvm/include/llvm/Support/WithColor.h
+++ llvm/include/llvm/Support/WithColor.h
@@ -60,7 +60,7 @@
/// @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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151598.526216.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230526/c621c424/attachment.bin>
More information about the llvm-commits
mailing list