Skip to content

Commit

Permalink
clean up forward declarations of raw_ostream to use the new LLVM.h
Browse files Browse the repository at this point in the history
patch by Jon Mulder!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135851 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jul 23, 2011
1 parent 52a75ba commit d47d3b0
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 32 deletions.
7 changes: 2 additions & 5 deletions include/clang/AST/PrettyPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
#define LLVM_CLANG_AST_PRETTY_PRINTER_H

#include "clang/Basic/LangOptions.h"

namespace llvm {
class raw_ostream;
}
#include "clang/Basic/LLVM.h"

namespace clang {

Expand All @@ -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
Expand Down
5 changes: 1 addition & 4 deletions include/clang/Basic/SourceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -25,10 +26,6 @@
#include <vector>
#include <cassert>

namespace llvm {
class StringRef;
}

namespace clang {

class Diagnostic;
Expand Down
5 changes: 1 addition & 4 deletions include/clang/Lex/DirectoryLookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
#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;
Expand Down
5 changes: 1 addition & 4 deletions include/clang/StaticAnalyzer/Core/CheckerProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
#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 {
Expand Down
3 changes: 1 addition & 2 deletions include/clang/StaticAnalyzer/Core/PathSensitive/GRState.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@
#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 "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.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 {
Expand Down
3 changes: 1 addition & 2 deletions include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
#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 {
Expand Down
6 changes: 1 addition & 5 deletions include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
#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.
//==------------------------------------------------------------------------==//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/CodeGen/CGCXXABI.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
#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 {
Expand Down
7 changes: 4 additions & 3 deletions lib/CodeGen/CGRecordLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
#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;
}

Expand Down

0 comments on commit d47d3b0

Please sign in to comment.