aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCXXScopeSpec.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-03-28 23:53:49 +0000
committerAnders Carlsson <andersca@mac.com>2009-03-28 23:53:49 +0000
commit81c85c421197a602523781a6ef730639c4c6ea51 (patch)
tree5bc91f2cea19b1ca29094545107d3829a3723118 /lib/Sema/SemaCXXScopeSpec.cpp
parentaf9e40f9909d89501617897c7295dff68c3907a3 (diff)
More improvements to namespace aliases. We now support everything except aliases in using directives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXScopeSpec.cpp')
-rw-r--r--lib/Sema/SemaCXXScopeSpec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Sema/SemaCXXScopeSpec.cpp b/lib/Sema/SemaCXXScopeSpec.cpp
index a879989b33..5395869a02 100644
--- a/lib/Sema/SemaCXXScopeSpec.cpp
+++ b/lib/Sema/SemaCXXScopeSpec.cpp
@@ -144,6 +144,10 @@ Sema::CXXScopeTy *Sema::ActOnCXXNestedNameSpecifier(Scope *S,
return NestedNameSpecifier::Create(Context, Prefix, false,
T.getTypePtr());
}
+
+ if (NamespaceAliasDecl *Alias = dyn_cast<NamespaceAliasDecl>(SD))
+ return NestedNameSpecifier::Create(Context, Prefix,
+ Alias->getNamespace());
// Fall through to produce an error: we found something that isn't
// a class or a namespace.