Skip to content

Commit 69906fe

Browse files
committed
[Debuginfo][NFC] add comments for WithColor routines.
Summary: This patch is follow-up for D74481. It adds comments to WithColor::defaultErrorHandler() and WithColor::defaultWarningHandler(). Reviewers: jhenderson, dblaikie, JDevlieghere Reviewed By: JDevlieghere Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74742
1 parent cdc514e commit 69906fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/Support/WithColor.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ class WithColor {
110110
/// outputting colored text, or before program exit.
111111
WithColor &resetColor();
112112

113+
/// Implement default handling for Error.
114+
/// Print "error: " to stderr.
113115
static void defaultErrorHandler(Error Err);
116+
117+
/// Implement default handling for Warning.
118+
/// Print "warning: " to stderr.
114119
static void defaultWarningHandler(Error Warning);
115120
};
116121

0 commit comments

Comments
 (0)