diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 20:19:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 20:19:54 +0000 |
commit | 471c8b49982d1132f30b0b0da27fef94fd6e4f67 (patch) | |
tree | 650f375f83cad2b9045a4a549076bcdcee529698 /lib/AST/DeclFriend.cpp | |
parent | d4f5198ae07d9a4958d8191bac694ded12173ad9 (diff) |
Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclFriend.cpp')
-rw-r--r-- | lib/AST/DeclFriend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AST/DeclFriend.cpp b/lib/AST/DeclFriend.cpp index 6e3bd8d422..553d170fc3 100644 --- a/lib/AST/DeclFriend.cpp +++ b/lib/AST/DeclFriend.cpp @@ -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, |