forked from OSchip/llvm-project
Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h.
llvm-svn: 159723
This commit is contained in:
parent
2d827d628e
commit
4ab984e74b
|
@ -15,7 +15,6 @@
|
|||
#ifndef LLVM_CLANG_AST_DECLFRIEND_H
|
||||
#define LLVM_CLANG_AST_DECLFRIEND_H
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
|
||||
|
@ -72,9 +71,11 @@ private:
|
|||
: Decl(Decl::Friend, Empty), NextFriend() { }
|
||||
|
||||
FriendDecl *getNextFriend() {
|
||||
return cast_or_null<FriendDecl>(
|
||||
NextFriend.get(getASTContext().getExternalSource()));
|
||||
if (!NextFriend.isOffset())
|
||||
return cast_or_null<FriendDecl>(NextFriend.get(0));
|
||||
return getNextFriendSlowCase();
|
||||
}
|
||||
FriendDecl *getNextFriendSlowCase();
|
||||
|
||||
public:
|
||||
static FriendDecl *Create(ASTContext &C, DeclContext *DC,
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#ifndef LLVM_CLANG_AST_DECLTEMPLATE_H
|
||||
#define LLVM_CLANG_AST_DECLTEMPLATE_H
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/AST/Redeclarable.h"
|
||||
#include "clang/AST/TemplateBase.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "clang/Sema/Ownership.h"
|
||||
#include "clang/Sema/Overload.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/AST/UnresolvedSet.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "clang/ARCMigrate/ARCMTActions.h"
|
||||
#include "clang/Frontend/CompilerInstance.h"
|
||||
#include "clang/Frontend/MultiplexConsumer.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/RecursiveASTVisitor.h"
|
||||
#include "clang/AST/NSAPI.h"
|
||||
#include "clang/AST/ASTConsumer.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include <map>
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/StmtVisitor.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "llvm/Support/SaveAndRestore.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/TinyPtrVector.h"
|
||||
#include "llvm/Support/SaveAndRestore.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace arcmt;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -19,10 +19,11 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/ParentMap.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace arcmt;
|
||||
|
|
|
@ -35,10 +35,11 @@
|
|||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/Analysis/DomainSpecific/CocoaConventions.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/ParentMap.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace arcmt;
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
|
||||
#include "Transforms.h"
|
||||
#include "Internals.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "clang/Sema/Sema.h"
|
||||
#include "clang/Analysis/DomainSpecific/CocoaConventions.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/RecursiveASTVisitor.h"
|
||||
#include "clang/AST/StmtVisitor.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Analysis/DomainSpecific/CocoaConventions.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Sema/Sema.h"
|
||||
#include "clang/Sema/SemaDiagnostic.h"
|
||||
#include "llvm/ADT/StringSwitch.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include <map>
|
||||
|
|
|
@ -12,12 +12,18 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclFriend.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
using namespace clang;
|
||||
|
||||
void FriendDecl::anchor() { }
|
||||
|
||||
FriendDecl *FriendDecl::getNextFriendSlowCase() {
|
||||
return cast_or_null<FriendDecl>(
|
||||
NextFriend.get(getASTContext().getExternalSource()));
|
||||
}
|
||||
|
||||
FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC,
|
||||
SourceLocation L,
|
||||
FriendUnion Friend,
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Basic/IdentifierTable.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
#include "clang/AST/ExprCXX.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/StmtVisitor.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Serialization/ASTReader.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
#include "clang/AST/StmtVisitor.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Serialization/ASTWriter.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
|
|
Loading…
Reference in New Issue