summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/load-namespaces.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-01 00:08:19 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-01 00:08:19 +0000
commitf9e43cef544d33c6d86ce82d9e82e2f3b6152098 (patch)
treea5678bd13ae4b7445d60f58322ab3160bfd7e993 /clang/test/Index/load-namespaces.cpp
parent39de024e66bae6135c5ec35c343a81b95c1a93cf (diff)
downloadbcm5719-llvm-f9e43cef544d33c6d86ce82d9e82e2f3b6152098.tar.gz
bcm5719-llvm-f9e43cef544d33c6d86ce82d9e82e2f3b6152098.zip
Improve location information in the representation of namespace
aliases. Previously, the location of the alias was at the "namespace" keyword. Now, it's on the identifier being declared (as is the custom for Clang), and we keep a separate source location for the "namespace" keyword. Also, added a getSourceRange() member function to NamespaceAliasDecl to correctly compute the source range. Finally, removed a bunch of setters from NamespaceAliasDecl and gave ASTReaderDecl friendship so that it could set the corresponding fields directly. llvm-svn: 112681
Diffstat (limited to 'clang/test/Index/load-namespaces.cpp')
-rw-r--r--clang/test/Index/load-namespaces.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/test/Index/load-namespaces.cpp b/clang/test/Index/load-namespaces.cpp
index cf94546a247..e614f7ca98d 100644
--- a/clang/test/Index/load-namespaces.cpp
+++ b/clang/test/Index/load-namespaces.cpp
@@ -21,8 +21,7 @@ namespace std0x = std98;
// CHECK: load-namespaces.cpp:5:10: FunctionDecl=f:5:10 Extent=[5:10 - 5:13]
// CHECK: load-namespaces.cpp:9:11: Namespace=std:9:11 (Definition) Extent=[9:11 - 11:2]
// CHECK: load-namespaces.cpp:10:8: FunctionDecl=g:10:8 Extent=[10:8 - 10:11]
-// CHECK: load-namespaces.cpp:13:1: NamespaceAlias=std98:13:1 Extent=[13:1 - 13:10]
+// CHECK: load-namespaces.cpp:13:11: NamespaceAlias=std98:13:11 Extent=[13:1 - 13:22]
// CHECK: load-namespaces.cpp:13:19: NamespaceRef=std:3:11 Extent=[13:19 - 13:22]
-// CHECK: load-namespaces.cpp:14:1: NamespaceAlias=std0x:14:1 Extent=[14:1 - 14:10]
-// CHECK: load-namespaces.cpp:14:19: NamespaceRef=std98:13:1 Extent=[14:19 - 14:24]
-
+// CHECK: load-namespaces.cpp:14:11: NamespaceAlias=std0x:14:11 Extent=[14:1 - 14:24]
+// CHECK: load-namespaces.cpp:14:19: NamespaceRef=std98:13:11 Extent=[14:19 - 14:24]
OpenPOWER on IntegriCloud