aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-03-28 22:58:02 +0000
committerAnders Carlsson <andersca@mac.com>2009-03-28 22:58:02 +0000
commit68771c73f4293620dc1a99154ec02111e6490e28 (patch)
tree9d2ff7bd10bb462a9e76c6db11a3c11a1b6f1a1f /lib/Sema/SemaDeclCXX.cpp
parent03bd5a1e9a54b62b10ae8aeb6eb5245e2031d98b (diff)
Create AST nodes for namespace aliases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index c9a2363422..f58125d2e3 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -1707,7 +1707,12 @@ Sema::DeclPtrTy Sema::ActOnNamespaceAliasDef(Scope *S,
return DeclPtrTy();
}
- return DeclPtrTy();
+ NamespaceAliasDecl *AliasDecl =
+ NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc, Alias,
+ IdentLoc, R);
+
+ CurContext->addDecl(AliasDecl);
+ return DeclPtrTy::make(AliasDecl);
}
/// AddCXXDirectInitializerToDecl - This action is called immediately after