[llvm] 1a94575 - WithColor.h - reduce unnecessary includes to forward declarations. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 06:38:30 PDT 2020


Author: Simon Pilgrim
Date: 2020-05-28T14:38:11+01:00
New Revision: 1a945757ac7debd9ad14497fa404e3900869cad5

URL: https://github.com/llvm/llvm-project/commit/1a945757ac7debd9ad14497fa404e3900869cad5
DIFF: https://github.com/llvm/llvm-project/commit/1a945757ac7debd9ad14497fa404e3900869cad5.diff

LOG: WithColor.h - reduce unnecessary includes to forward declarations. NFC.

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 b5758b19be6d..411a92071fc7 100644
--- a/llvm/include/llvm/Support/WithColor.h
+++ b/llvm/include/llvm/Support/WithColor.h
@@ -9,15 +9,15 @@
 #ifndef LLVM_SUPPORT_WITHCOLOR_H
 #define LLVM_SUPPORT_WITHCOLOR_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Error.h"
 
 namespace llvm {
 
-extern cl::OptionCategory ColorCategory;
-
+class Error;
 class raw_ostream;
+class StringRef;
+
+extern cl::OptionCategory ColorCategory;
 
 // Symbolic names for various syntax elements.
 enum class HighlightColor {


        


More information about the llvm-commits mailing list