[PATCH] D74742: [Debuginfo][NFC] add comments for WithColor routines.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 15:21:57 PST 2020


avl created this revision.
avl added reviewers: jhenderson, dblaikie, JDevlieghere.
Herald added a project: LLVM.

This patch is follow-up for D74481 <https://reviews.llvm.org/D74481>. It adds comments
to WithColor::defaultErrorHandler() and
WithColor::defaultWarningHandler().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74742

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74742.245044.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200217/6cdcbeeb/attachment.bin>


More information about the llvm-commits mailing list