[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
This commit is contained in:
Alexey Lapshin 2020-02-18 02:05:56 +03:00
parent cdc514e4c6
commit 69906fe0b1
1 changed files with 5 additions and 0 deletions

View File

@ -110,7 +110,12 @@ public:
/// outputting colored text, or before program exit. /// outputting colored text, or before program exit.
WithColor &resetColor(); WithColor &resetColor();
/// Implement default handling for Error.
/// Print "error: " to stderr.
static void defaultErrorHandler(Error Err); static void defaultErrorHandler(Error Err);
/// Implement default handling for Warning.
/// Print "warning: " to stderr.
static void defaultWarningHandler(Error Warning); static void defaultWarningHandler(Error Warning);
}; };