diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-05-15 10:41:04 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-05-15 10:41:04 +0000 |
commit | 57c4f648d1944d5e02f5fade13348cbb504505b3 (patch) | |
tree | 6bbf735412ee23b5eedac659c78b1506d8a48715 /clang/test/Index/Core/index-source.cpp | |
parent | 09653330bca7b9894401271879bf62ceda6c03c3 (diff) | |
download | bcm5719-llvm-57c4f648d1944d5e02f5fade13348cbb504505b3.tar.gz bcm5719-llvm-57c4f648d1944d5e02f5fade13348cbb504505b3.zip |
[index] Store correct location for namespace nested name qualifiers
rdar://32195200
llvm-svn: 303046
Diffstat (limited to 'clang/test/Index/Core/index-source.cpp')
-rw-r--r-- | clang/test/Index/Core/index-source.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Index/Core/index-source.cpp b/clang/test/Index/Core/index-source.cpp index cae7508c5f1..48ca3a9b573 100644 --- a/clang/test/Index/Core/index-source.cpp +++ b/clang/test/Index/Core/index-source.cpp @@ -314,3 +314,21 @@ class ClassWithCorrectSpecialization<SpecializationDecl<Cls>, Record::C> { }; // CHECK: [[@LINE-2]]:57 | class/C++ | Cls | c:@S@Cls | <no-cgname> | Ref | rel: 0 // CHECK: [[@LINE-3]]:71 | static-property/C++ | C | c:@S@Record@C | __ZN6Record1CE | Ref,Read | rel: 0 // CHECK: [[@LINE-4]]:63 | struct/C++ | Record | c:@S@Record | <no-cgname> | Ref | rel: 0 + +namespace ns { +// CHECK: [[@LINE-1]]:11 | namespace/C++ | ns | c:@N@ns | <no-cgname> | Decl | rel: 0 +namespace inner { +// CHECK: [[@LINE-1]]:11 | namespace/C++ | inner | c:@N@ns@N@inner | <no-cgname> | Decl,RelChild | rel: 1 +void func(); + +} +namespace innerAlias = inner; +} + +void ::ns::inner::func() { +// CHECK: [[@LINE-1]]:8 | namespace/C++ | ns | c:@N@ns | <no-cgname> | Ref,RelCont | rel: 1 +// CHECK: [[@LINE-2]]:12 | namespace/C++ | inner | c:@N@ns@N@inner | <no-cgname> | Ref,RelCont | rel: 1 + ns::innerAlias::func(); +// CHECK: [[@LINE-1]]:3 | namespace/C++ | ns | c:@N@ns | <no-cgname> | Ref,RelCont | rel: 1 +// CHECK: [[@LINE-2]]:7 | namespace-alias/C++ | innerAlias | c:@N@ns@NA@innerAlias | <no-cgname> | Ref,RelCont | rel: 1 +} |