OSDN Git Service

WithColor.h - reduce unnecessary includes to forward declarations. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 May 2020 12:58:35 +0000 (13:58 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 May 2020 13:38:11 +0000 (14:38 +0100)
llvm/include/llvm/Support/WithColor.h

index b5758b1..411a920 100644 (file)
@@ -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 {