[llvm] 69906fe - [Debuginfo][NFC] add comments for WithColor routines.

Alexey Lapshin via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 23:36:17 PST 2020


Author: Alexey Lapshin
Date: 2020-02-18T10:36:10+03:00
New Revision: 69906fe0b1812bb5be8028b21dfba4b78af351ba

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

LOG: [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

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 96b2b711db84..b5758b19be6d 100644
--- a/llvm/include/llvm/Support/WithColor.h
+++ b/llvm/include/llvm/Support/WithColor.h
@@ -110,7 +110,12 @@ class WithColor {
   /// 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);
 };
 


        


More information about the llvm-commits mailing list