diff options
author | John McCall <rjmccall@apple.com> | 2009-08-11 21:13:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-08-11 21:13:21 +0000 |
commit | c48fbdfb83a5e50fed693f0bdda3396e5b67051d (patch) | |
tree | 0733e013e1f2e7eb3a4788633ada2beda5d74bbc /lib/AST/DeclCXX.cpp | |
parent | bab8a8ee632f0f62b67709a57e2b7ca165205020 (diff) |
Add a FriendClassDecl type for holding declarations of friend types in
the AST, and create such declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclCXX.cpp')
-rw-r--r-- | lib/AST/DeclCXX.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index 87a557d4df..e9ae7e77f0 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -743,14 +743,20 @@ bool OverloadIterator::Equals(const OverloadIterator &Other) const { return !isa<OverloadedFunctionDecl>(D) || Iter == Other.Iter; } -FriendFunctionDecl *FriendFunctionDecl::Create(ASTContext &C,DeclContext *DC, +FriendFunctionDecl *FriendFunctionDecl::Create(ASTContext &C, + DeclContext *DC, SourceLocation L, DeclarationName N, QualType T, bool isInline, SourceLocation FriendL) { return new (C) FriendFunctionDecl(DC, L, N, T, isInline, FriendL); } - + +FriendClassDecl *FriendClassDecl::Create(ASTContext &C, DeclContext *DC, + SourceLocation L, QualType T, + SourceLocation FriendL) { + return new (C) FriendClassDecl(DC, L, T, FriendL); +} LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, DeclContext *DC, |