]> granicus.if.org Git - clang/commitdiff
clean up forward declarations of raw_ostream to use the new LLVM.h
authorChris Lattner <sabre@nondot.org>
Sat, 23 Jul 2011 10:35:09 +0000 (10:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Jul 2011 10:35:09 +0000 (10:35 +0000)
patch by Jon Mulder!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135851 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/PrettyPrinter.h
include/clang/Basic/SourceManager.h
include/clang/Lex/DirectoryLookup.h
include/clang/StaticAnalyzer/Core/CheckerProvider.h
include/clang/StaticAnalyzer/Core/PathSensitive/GRState.h
include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
lib/CodeGen/CGCXXABI.h
lib/CodeGen/CGRecordLayout.h

index fc8ac36b3b97b0db8dcc1cb10b9bdd8fc513961f..ae56671d90020a3f77ae17133b32cbe1aa3a3951 100644 (file)
 #define LLVM_CLANG_AST_PRETTY_PRINTER_H
 
 #include "clang/Basic/LangOptions.h"
-
-namespace llvm {
-  class raw_ostream;
-}
+#include "clang/Basic/LLVM.h"
 
 namespace clang {
 
@@ -29,7 +26,7 @@ class LangOptions;
 class PrinterHelper {
 public:
   virtual ~PrinterHelper();
-  virtual bool handledStmt(Stmt* E, llvm::raw_ostream& OS) = 0;
+  virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
 };
 
 /// \brief Describes how types, statements, expressions, and
index 96acffc9810b0145770926d109d50c7029246313..6e035fcb80f0d36743fe6e917bc243684a908bdb 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_CLANG_SOURCEMANAGER_H
 #define LLVM_CLANG_SOURCEMANAGER_H
 
+#include "clang/Basic/LLVM.h"
 #include "clang/Basic/SourceLocation.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/DataTypes.h"
 #include <vector>
 #include <cassert>
 
-namespace llvm {
-class StringRef;
-}
-
 namespace clang {
 
 class Diagnostic;
index bcc33f7ec02d70a76b24abbe8de22fc0d2558529..ca116df9de22f2248875a013e56e9e0860a80edf 100644 (file)
 #ifndef LLVM_CLANG_LEX_DIRECTORYLOOKUP_H
 #define LLVM_CLANG_LEX_DIRECTORYLOOKUP_H
 
+#include "clang/Basic/LLVM.h"
 #include "clang/Basic/SourceManager.h"
 
-namespace llvm {
-  class StringRef;
-  template <typename T> class SmallVectorImpl;
-}
 namespace clang {
 class HeaderMap;
 class DirectoryEntry;
index 905d4c959f99f724c8731b7b8de159543b31a2a2..86d05430a64e2b15178446e9f8400befd4d68fa7 100644 (file)
 #ifndef LLVM_CLANG_SA_CORE_CHECKERPROVIDER_H
 #define LLVM_CLANG_SA_CORE_CHECKERPROVIDER_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/StringRef.h"
 
-namespace llvm {
-  class raw_ostream;
-}
-
 namespace clang {
 
 namespace ento {
index 2f610c9c40b16d74aa500ead476a0a519506a3f0..35cd142e971f0e910641b8ca713bd1d2d496407a 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_CLANG_GR_VALUESTATE_H
 #define LLVM_CLANG_GR_VALUESTATE_H
 
+#include "clang/Basic/LLVM.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/Environment.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/Store.h"
 #include "llvm/ADT/PointerIntPair.h"
 #include "llvm/ADT/FoldingSet.h"
 #include "llvm/ADT/ImmutableMap.h"
-#include "llvm/Support/Casting.h"
 
 namespace llvm {
 class APSInt;
 class BumpPtrAllocator;
-class raw_ostream;
 }
 
 namespace clang {
index 05173aa036057a431602905e85a1a9b90c01645e..c2a2a9a914af5dc243ec345e92f923af6298fec4 100644 (file)
 #include "clang/AST/CharUnits.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclObjC.h"
+#include "clang/Basic/LLVM.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/SVals.h"
-#include "llvm/Support/Casting.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/ADT/FoldingSet.h"
 #include <string>
 
 namespace llvm {
 class BumpPtrAllocator;
-class raw_ostream;
 }
 
 namespace clang {
index 6761df4b37ab47fbb69330aa4703dc1261de9990..5b72ca674285a7f3955fb895bd9243ac6f16cead 100644 (file)
 #ifndef LLVM_CLANG_GR_RVALUE_H
 #define LLVM_CLANG_GR_RVALUE_H
 
+#include "clang/Basic/LLVM.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h"
-#include "llvm/Support/Casting.h"
 #include "llvm/ADT/ImmutableList.h"
 
-namespace llvm {
-  class raw_ostream;
-}
-
 //==------------------------------------------------------------------------==//
 //  Base SVal types.
 //==------------------------------------------------------------------------==//
index 521eb55b875d38b8405716eab680262eb59d220d..0cb4ad992bba279004fa2c49754d08d9c674a42b 100644 (file)
 #include "clang/AST/Decl.h"
 #include "clang/AST/Expr.h"
 #include "clang/Analysis/AnalysisContext.h"
+#include "clang/Basic/LLVM.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/ADT/FoldingSet.h"
 #include "llvm/ADT/DenseSet.h"
 
 namespace llvm {
 class BumpPtrAllocator;
-class raw_ostream;
 }
 
 namespace clang {
index 8c0df38ff1a5df34225d2bfeee44412fd241d474..c2abf358329cbe5efe651ba129d58dda51fb0d46 100644 (file)
 #ifndef CLANG_CODEGEN_CXXABI_H
 #define CLANG_CODEGEN_CXXABI_H
 
+#include "clang/Basic/LLVM.h"
+
 #include "CodeGenFunction.h"
 
 namespace llvm {
   class Constant;
   class Type;
   class Value;
-
-  template <class T> class SmallVectorImpl;
 }
 
 namespace clang {
index e2fd45dc86bec26d4bc4042a474b468be7064315..25a0a508f188f3d66051b68db568e6527fb2abd3 100644 (file)
 #ifndef CLANG_CODEGEN_CGRECORDLAYOUT_H
 #define CLANG_CODEGEN_CGRECORDLAYOUT_H
 
-#include "llvm/ADT/DenseMap.h"
-#include "llvm/DerivedTypes.h"
 #include "clang/AST/CharUnits.h"
 #include "clang/AST/Decl.h"
+#include "clang/Basic/LLVM.h"
+#include "llvm/ADT/DenseMap.h"
+#include "llvm/DerivedTypes.h"
+
 namespace llvm {
-  class raw_ostream;
   class StructType;
 }