summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-30 06:48:27 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-30 06:48:27 +0000
commit182319375a2cec35cdc2922e99549064ef2e52c1 (patch)
tree7f80d0e72c68ee254462ccc0c1d840413d040568 /clang/lib/Sema/SemaDeclCXX.cpp
parent17304245165e4172478ccdaab989184629645fec (diff)
downloadbcm5719-llvm-182319375a2cec35cdc2922e99549064ef2e52c1.tar.gz
bcm5719-llvm-182319375a2cec35cdc2922e99549064ef2e52c1.zip
Pretty printing and improved representation for namespace alias declarations
llvm-svn: 72616
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index cd722fe1693..67c6dc3fae4 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -1787,7 +1787,9 @@ Sema::DeclPtrTy Sema::ActOnNamespaceAliasDef(Scope *S,
}
NamespaceAliasDecl *AliasDecl =
- NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc, Alias,
+ NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc,
+ Alias, SS.getRange(),
+ (NestedNameSpecifier *)SS.getScopeRep(),
IdentLoc, R);
CurContext->addDecl(Context, AliasDecl);
OpenPOWER on IntegriCloud