summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-refs.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-02-23 18:23:29 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-02-23 18:23:29 +0000
commitd3ba4103562ed1fe9672afe160d590ce18f92b02 (patch)
treeef19418da5b8c12132f519a47910c2caeff80b2c /clang/test/Index/index-refs.cpp
parent4ab6e7324accb3ac97012400095a790438fa820a (diff)
downloadbcm5719-llvm-d3ba4103562ed1fe9672afe160d590ce18f92b02.tar.gz
bcm5719-llvm-d3ba4103562ed1fe9672afe160d590ce18f92b02.zip
[Index] Make the USRs more stable.
- Only include offsets with local (in function scope) symbols, where we don't encode scoping - Only include the filename with non-system symbols. Presumably the system headers will not provide conflicting definitions. rdar://15976823 llvm-svn: 201990
Diffstat (limited to 'clang/test/Index/index-refs.cpp')
-rw-r--r--clang/test/Index/index-refs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/index-refs.cpp b/clang/test/Index/index-refs.cpp
index 77e2af71f88..adbf02a7c6e 100644
--- a/clang/test/Index/index-refs.cpp
+++ b/clang/test/Index/index-refs.cpp
@@ -102,7 +102,7 @@ void foo5() {
// CHECK: [indexDeclaration]: kind: c++-class-template | name: TS | {{.*}} | loc: 47:8
// CHECK-NEXT: [indexDeclaration]: kind: struct-template-partial-spec | name: TS | USR: c:@SP>1#T@TS>#t0.0#I | {{.*}} | loc: 50:8
-// CHECK-NEXT: [indexDeclaration]: kind: typedef | name: MyInt | USR: c:index-refs.cpp@593@SP>1#T@TS>#t0.0#I@T@MyInt | {{.*}} | loc: 51:15 | semantic-container: [TS:50:8] | lexical-container: [TS:50:8]
+// CHECK-NEXT: [indexDeclaration]: kind: typedef | name: MyInt | USR: c:index-refs.cpp@SP>1#T@TS>#t0.0#I@T@MyInt | {{.*}} | loc: 51:15 | semantic-container: [TS:50:8] | lexical-container: [TS:50:8]
/* when indexing implicit instantiations
[indexDeclaration]: kind: struct-template-spec | name: TS | USR: c:@S@TS>#I | {{.*}} | loc: 50:8
[indexDeclaration]: kind: typedef | name: MyInt | USR: c:index-refs.cpp@593@S@TS>#I@T@MyInt | {{.*}} | loc: 51:15 | semantic-container: [TS:50:8] | lexical-container: [TS:50:8]
OpenPOWER on IntegriCloud