diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-06-20 00:51:54 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-06-20 00:51:54 +0000 |
| commit | fec52635f0d5ebe6eaa64fcdd66f60166d9ae823 (patch) | |
| tree | ad2c300f8de5f21fd1b73df7375f1aebdccc4ce5 /clang/lib/AST/DeclCXX.cpp | |
| parent | 1f8d96868776f59b1b9588f0a0f6675e2ed3396e (diff) | |
| download | bcm5719-llvm-fec52635f0d5ebe6eaa64fcdd66f60166d9ae823.tar.gz bcm5719-llvm-fec52635f0d5ebe6eaa64fcdd66f60166d9ae823.zip | |
Parsing and AST support for using declarations, from John Thompson!
llvm-svn: 73812
Diffstat (limited to 'clang/lib/AST/DeclCXX.cpp')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 2fa5ed7919d..7a930d78c12 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -443,6 +443,14 @@ NamespaceAliasDecl *NamespaceAliasDecl::Create(ASTContext &C, DeclContext *DC, Qualifier, IdentLoc, Namespace); } +UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, + SourceLocation L, SourceRange NNR, SourceLocation TargetNL, + SourceLocation UL, NamedDecl* Target, + NestedNameSpecifier* TargetNNS, bool IsTypeNameArg) { + return new (C) UsingDecl(DC, L, NNR, TargetNL, UL, Target, + TargetNNS, IsTypeNameArg); +} + StaticAssertDecl *StaticAssertDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, Expr *AssertExpr, StringLiteral *Message) { |

