From db999aad8a1b9dc265b2e627be334be6580a86a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 20 Jul 2011 07:12:43 +0000 Subject: [PATCH] remove some now-redundant forward declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135578 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ASTContext.h | 1 - include/clang/AST/ExternalASTSource.h | 5 ----- include/clang/AST/NestedNameSpecifier.h | 4 ---- include/clang/AST/PrettyPrinter.h | 4 ---- include/clang/AST/TemplateBase.h | 1 - include/clang/Analysis/CFG.h | 4 ---- include/clang/Basic/SourceLocation.h | 1 - include/clang/Driver/ArgList.h | 4 ---- include/clang/Driver/Compilation.h | 5 ----- include/clang/Driver/Driver.h | 1 - include/clang/Frontend/CompilerInstance.h | 1 - include/clang/Frontend/CompilerInvocation.h | 4 ---- include/clang/Frontend/FrontendAction.h | 4 ---- include/clang/Index/ASTLocation.h | 4 ---- include/clang/Rewrite/FixItRewriter.h | 2 -- include/clang/Rewrite/Rewriter.h | 2 -- include/clang/Sema/CodeCompleteConsumer.h | 5 ----- include/clang/Sema/Initialization.h | 4 ---- 18 files changed, 56 deletions(-) diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index c2b3d9fe6e..2da3055f57 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -37,7 +37,6 @@ namespace llvm { struct fltSemantics; - class raw_ostream; } namespace clang { diff --git a/include/clang/AST/ExternalASTSource.h b/include/clang/AST/ExternalASTSource.h index 71b8b58747..28103fcee6 100644 --- a/include/clang/AST/ExternalASTSource.h +++ b/include/clang/AST/ExternalASTSource.h @@ -15,11 +15,6 @@ #define LLVM_CLANG_AST_EXTERNAL_AST_SOURCE_H #include "clang/AST/DeclBase.h" -#include - -namespace llvm { -template class SmallVectorImpl; -} namespace clang { diff --git a/include/clang/AST/NestedNameSpecifier.h b/include/clang/AST/NestedNameSpecifier.h index ae65d00dd7..d1d6e72ca7 100644 --- a/include/clang/AST/NestedNameSpecifier.h +++ b/include/clang/AST/NestedNameSpecifier.h @@ -18,10 +18,6 @@ #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/PointerIntPair.h" -namespace llvm { - class raw_ostream; -} - namespace clang { class ASTContext; diff --git a/include/clang/AST/PrettyPrinter.h b/include/clang/AST/PrettyPrinter.h index a5ffd3764e..a34c0d9556 100644 --- a/include/clang/AST/PrettyPrinter.h +++ b/include/clang/AST/PrettyPrinter.h @@ -16,10 +16,6 @@ #include "clang/Basic/LangOptions.h" -namespace llvm { - class raw_ostream; -} - namespace clang { class Stmt; diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h index a9b6cad048..26021e4d7e 100644 --- a/include/clang/AST/TemplateBase.h +++ b/include/clang/AST/TemplateBase.h @@ -23,7 +23,6 @@ namespace llvm { class FoldingSetNodeID; - class raw_ostream; } namespace clang { diff --git a/include/clang/Analysis/CFG.h b/include/clang/Analysis/CFG.h index ec3fa779a6..f7a0f95847 100644 --- a/include/clang/Analysis/CFG.h +++ b/include/clang/Analysis/CFG.h @@ -28,10 +28,6 @@ #include #include -namespace llvm { - class raw_ostream; -} - namespace clang { class CXXDestructorDecl; class Decl; diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 3a4780c20d..01e2b2c299 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -22,7 +22,6 @@ namespace llvm { class MemoryBuffer; - class raw_ostream; template struct DenseMapInfo; template struct isPodLike; } diff --git a/include/clang/Driver/ArgList.h b/include/clang/Driver/ArgList.h index 8a37915904..617561b0f6 100644 --- a/include/clang/Driver/ArgList.h +++ b/include/clang/Driver/ArgList.h @@ -20,10 +20,6 @@ #include #include -namespace llvm { - class Twine; -} - namespace clang { class Diagnostic; diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h index 64ca32f78e..4f69d0a420 100644 --- a/include/clang/Driver/Compilation.h +++ b/include/clang/Driver/Compilation.h @@ -12,13 +12,8 @@ #include "clang/Driver/Job.h" #include "clang/Driver/Util.h" - #include "llvm/ADT/DenseMap.h" -namespace llvm { - class raw_ostream; -} - namespace clang { namespace driver { class DerivedArgList; diff --git a/include/clang/Driver/Driver.h b/include/clang/Driver/Driver.h index 4c6467ac91..1af572a5bd 100644 --- a/include/clang/Driver/Driver.h +++ b/include/clang/Driver/Driver.h @@ -24,7 +24,6 @@ #include namespace llvm { - class raw_ostream; template class ArrayRef; } namespace clang { diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h index 66ace650da..73eeff4c4d 100644 --- a/include/clang/Frontend/CompilerInstance.h +++ b/include/clang/Frontend/CompilerInstance.h @@ -19,7 +19,6 @@ #include namespace llvm { -class raw_ostream; class raw_fd_ostream; class Timer; } diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index e18f3fe632..23ddc84304 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -28,10 +28,6 @@ #include #include -namespace llvm { - template class SmallVectorImpl; -} - namespace clang { class Diagnostic; diff --git a/include/clang/Frontend/FrontendAction.h b/include/clang/Frontend/FrontendAction.h index cd6dfa2d35..4762e093cf 100644 --- a/include/clang/Frontend/FrontendAction.h +++ b/include/clang/Frontend/FrontendAction.h @@ -16,10 +16,6 @@ #include #include -namespace llvm { - class raw_ostream; -} - namespace clang { class ASTConsumer; class ASTMergeAction; diff --git a/include/clang/Index/ASTLocation.h b/include/clang/Index/ASTLocation.h index d4babcc8fd..7b66e7ea4f 100644 --- a/include/clang/Index/ASTLocation.h +++ b/include/clang/Index/ASTLocation.h @@ -17,10 +17,6 @@ #include "clang/AST/TypeLoc.h" #include "llvm/ADT/PointerIntPair.h" -namespace llvm { - class raw_ostream; -} - namespace clang { class Decl; class Stmt; diff --git a/include/clang/Rewrite/FixItRewriter.h b/include/clang/Rewrite/FixItRewriter.h index f1028380c3..f96d307f72 100644 --- a/include/clang/Rewrite/FixItRewriter.h +++ b/include/clang/Rewrite/FixItRewriter.h @@ -19,8 +19,6 @@ #include "clang/Basic/SourceLocation.h" #include "clang/Rewrite/Rewriter.h" -namespace llvm { class raw_ostream; } - namespace clang { class SourceManager; diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h index beddda88e0..ad46379020 100644 --- a/include/clang/Rewrite/Rewriter.h +++ b/include/clang/Rewrite/Rewriter.h @@ -23,8 +23,6 @@ #include #include -namespace llvm { class raw_ostream; } - namespace clang { class LangOptions; class Rewriter; diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h index 93722b933a..e14c593eaa 100644 --- a/include/clang/Sema/CodeCompleteConsumer.h +++ b/include/clang/Sema/CodeCompleteConsumer.h @@ -21,11 +21,6 @@ #include "clang-c/Index.h" #include -namespace llvm { - class raw_ostream; - class Twine; -} - namespace clang { class Decl; diff --git a/include/clang/Sema/Initialization.h b/include/clang/Sema/Initialization.h index 880ed2f9d2..3b100ce257 100644 --- a/include/clang/Sema/Initialization.h +++ b/include/clang/Sema/Initialization.h @@ -22,10 +22,6 @@ #include "llvm/ADT/SmallVector.h" #include -namespace llvm { - class raw_ostream; -} - namespace clang { class CXXBaseSpecifier; -- 2.40.0