diff options
| author | John McCall <rjmccall@apple.com> | 2010-03-11 07:50:04 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-03-11 07:50:04 +0000 |
| commit | bbbbe4eaafec9f46c853c7209145de73a3b7bab3 (patch) | |
| tree | 6272476afe4bfd1dbc3dbeb12488ade75fab3c06 /clang/lib/AST/DeclCXX.cpp | |
| parent | 4cbe83cccbda81adb9b6e410110b7e6df694b290 (diff) | |
| download | bcm5719-llvm-bbbbe4eaafec9f46c853c7209145de73a3b7bab3.tar.gz bcm5719-llvm-bbbbe4eaafec9f46c853c7209145de73a3b7bab3.zip | |
Split C++ friend declarations into their own header/implementation file.
I'm expecting this portion of the AST to grow and change, and I'd like to
be able to do that with minimal recompilation. If this proves unnecessary
when access control is fully-implemented, I'll fold the classes back into
DeclCXX.h.
llvm-svn: 98249
Diffstat (limited to 'clang/lib/AST/DeclCXX.cpp')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 7f4ad34fb7f..72b7f49dff0 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -846,28 +846,6 @@ CXXConversionDecl::Create(ASTContext &C, CXXRecordDecl *RD, return new (C) CXXConversionDecl(RD, L, N, T, TInfo, isInline, isExplicit); } -FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, - SourceLocation L, - FriendUnion Friend, - SourceLocation FriendL) { -#ifndef NDEBUG - if (Friend.is<NamedDecl*>()) { - NamedDecl *D = Friend.get<NamedDecl*>(); - assert(isa<FunctionDecl>(D) || - isa<CXXRecordDecl>(D) || - isa<FunctionTemplateDecl>(D) || - isa<ClassTemplateDecl>(D)); - - // As a temporary hack, we permit template instantiation to point - // to the original declaration when instantiating members. - assert(D->getFriendObjectKind() || - (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); - } -#endif - - return new (C) FriendDecl(DC, L, Friend, FriendL); -} - LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, |

