diff options
author | John McCall <rjmccall@apple.com> | 2009-09-16 22:47:08 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-09-16 22:47:08 +0000 |
commit | dd4a3b0065b9a7e7b00073df415a798886c090f3 (patch) | |
tree | 50bb337b0aaedc02e16fc87594510e8f3377e080 /lib/AST/DeclTemplate.cpp | |
parent | 95f29c2703facd98141330b4957568387b2a3d15 (diff) |
Improved representation and support for friend class templates. Angst about same.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclTemplate.cpp')
-rw-r--r-- | lib/AST/DeclTemplate.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp index e01cbed20f..bd1aa7ca9e 100644 --- a/lib/AST/DeclTemplate.cpp +++ b/lib/AST/DeclTemplate.cpp @@ -463,3 +463,19 @@ Create(ASTContext &Context, DeclContext *DC, SourceLocation L, Context.getTypeDeclType(Result, PrevDecl); return Result; } + +//===----------------------------------------------------------------------===// +// FriendTemplateDecl Implementation +//===----------------------------------------------------------------------===// + +FriendTemplateDecl *FriendTemplateDecl::Create(ASTContext &Context, + DeclContext *DC, + SourceLocation L, + unsigned NParams, + TemplateParameterList **Params, + FriendUnion Friend, + SourceLocation FLoc) { + FriendTemplateDecl *Result + = new (Context) FriendTemplateDecl(DC, L, NParams, Params, Friend, FLoc); + return Result; +} |