diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 06:23:49 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-11 06:23:49 +0000 |
| commit | 56fdb6ae69fa3bd8b6878738afb7a371640b45fc (patch) | |
| tree | f843a9d29dadca32a938a8975949486d40398eb1 /clang/lib/AST | |
| parent | 7b7b67872fc105b1b12c0e6e979fea5a158cc132 (diff) | |
| download | bcm5719-llvm-56fdb6ae69fa3bd8b6878738afb7a371640b45fc.tar.gz bcm5719-llvm-56fdb6ae69fa3bd8b6878738afb7a371640b45fc.zip | |
More #include cleaning
- Kill unnecessary #includes in .cpp files. This is an automatic
sweep so some things removed are actually used, but happen to be
included by a previous header. I tried to get rid of the obvious
examples and this was the easiest way to trim the #includes in one
fell swoop.
- We now return to regularly scheduled development.
llvm-svn: 54632
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/AST/CFG.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/AST/ParentMap.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/AST/Stmt.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/AST/StmtDumper.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/AST/StmtIterator.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 5 | ||||
| -rw-r--r-- | clang/lib/AST/Type.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/AST/TypeSerialization.cpp | 1 |
11 files changed, 2 insertions, 22 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 5c39c2b5399..643d4753250 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -12,13 +12,11 @@ //===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclCXX.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/Expr.h" #include "clang/AST/RecordLayout.h" #include "clang/Basic/TargetInfo.h" -#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Bitcode/Serialize.h" #include "llvm/Bitcode/Deserialize.h" diff --git a/clang/lib/AST/CFG.cpp b/clang/lib/AST/CFG.cpp index dc49b45d8d8..0231c982f41 100644 --- a/clang/lib/AST/CFG.cpp +++ b/clang/lib/AST/CFG.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// #include "clang/AST/CFG.h" -#include "clang/AST/ExprObjC.h" #include "clang/AST/StmtVisitor.h" #include "clang/AST/PrettyPrinter.h" #include "llvm/ADT/DenseMap.h" diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index bd4c55f40f7..5fc7cf25f3d 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -13,12 +13,9 @@ #include "clang/AST/Expr.h" #include "clang/AST/DeclObjC.h" -#include "clang/AST/ExprObjC.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/APValue.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/StmtVisitor.h" -#include "clang/Basic/IdentifierTable.h" #include "clang/Basic/TargetInfo.h" using namespace clang; diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 62e1441484b..3fae5c90aae 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -13,7 +13,6 @@ #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" -#include "clang/AST/Expr.h" #include "clang/AST/StmtVisitor.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/TargetInfo.h" diff --git a/clang/lib/AST/ParentMap.cpp b/clang/lib/AST/ParentMap.cpp index bab3f4c38c7..82341c78f82 100644 --- a/clang/lib/AST/ParentMap.cpp +++ b/clang/lib/AST/ParentMap.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "clang/AST/ParentMap.h" +#include "clang/AST/Decl.h" #include "clang/AST/Expr.h" #include "llvm/ADT/DenseMap.h" diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 8f713c0e2ef..689fe852d8f 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -14,8 +14,6 @@ #include "clang/AST/Stmt.h" #include "clang/AST/ExprCXX.h" #include "clang/AST/ExprObjC.h" -#include "clang/AST/StmtVisitor.h" -#include "clang/Basic/IdentifierTable.h" using namespace clang; static struct StmtClassNameTable { diff --git a/clang/lib/AST/StmtDumper.cpp b/clang/lib/AST/StmtDumper.cpp index 6d0569ecd5c..0ccf2017542 100644 --- a/clang/lib/AST/StmtDumper.cpp +++ b/clang/lib/AST/StmtDumper.cpp @@ -13,10 +13,7 @@ //===----------------------------------------------------------------------===// #include "clang/AST/StmtVisitor.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" -#include "clang/AST/ExprCXX.h" -#include "clang/Basic/IdentifierTable.h" #include "clang/Basic/SourceManager.h" #include "llvm/Support/Compiler.h" #include <cstdio> diff --git a/clang/lib/AST/StmtIterator.cpp b/clang/lib/AST/StmtIterator.cpp index 0e5c0995a59..3af66b30bf3 100644 --- a/clang/lib/AST/StmtIterator.cpp +++ b/clang/lib/AST/StmtIterator.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "clang/AST/StmtIterator.h" -#include "clang/AST/Expr.h" #include "clang/AST/Decl.h" using namespace clang; diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 7cd00dab50d..abcab9cfd32 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -13,15 +13,10 @@ //===----------------------------------------------------------------------===// #include "clang/AST/StmtVisitor.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" -#include "clang/AST/ExprCXX.h" -#include "clang/AST/ExprObjC.h" #include "clang/AST/PrettyPrinter.h" -#include "clang/Basic/IdentifierTable.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Streams.h" -#include <iomanip> using namespace clang; //===----------------------------------------------------------------------===// diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp index 46e685be9d6..84b369ca309 100644 --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -12,13 +12,9 @@ //===----------------------------------------------------------------------===// #include "clang/AST/Type.h" -#include "clang/AST/Decl.h" #include "clang/AST/DeclCXX.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/Expr.h" -#include "clang/Basic/IdentifierTable.h" -#include "clang/Basic/TargetInfo.h" -#include "llvm/Support/Streams.h" #include "llvm/ADT/StringExtras.h" #include <sstream> using namespace clang; diff --git a/clang/lib/AST/TypeSerialization.cpp b/clang/lib/AST/TypeSerialization.cpp index 60b5c68b0c8..68ef1114a7c 100644 --- a/clang/lib/AST/TypeSerialization.cpp +++ b/clang/lib/AST/TypeSerialization.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "clang/AST/Type.h" +#include "clang/AST/Decl.h" #include "clang/AST/Expr.h" #include "clang/AST/ASTContext.h" #include "llvm/Bitcode/Serialize.h" |

