summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-module.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-01-26 02:11:50 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-01-26 02:11:50 +0000
commitaee15fb20445c2402ff3cda24318195a9603aa9a (patch)
tree04af8b211eaa3f77fc54b0acf75935091a1457a8 /clang/test/Index/index-module.m
parent647d34fe6170dbfe962c9d1b7c4e2f6bd9a6b3fb (diff)
downloadbcm5719-llvm-aee15fb20445c2402ff3cda24318195a9603aa9a.tar.gz
bcm5719-llvm-aee15fb20445c2402ff3cda24318195a9603aa9a.zip
[index] When indexing an ObjC method declaration use its base name for the location.
Instead of using the location of the beginning '-'/'+'. This is consistent with location used for function decls and ObjC method calls where we use the base name as the location as well. llvm-svn: 293134
Diffstat (limited to 'clang/test/Index/index-module.m')
-rw-r--r--clang/test/Index/index-module.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/index-module.m b/clang/test/Index/index-module.m
index d1c0b36b389..51faea2d32b 100644
--- a/clang/test/Index/index-module.m
+++ b/clang/test/Index/index-module.m
@@ -52,7 +52,7 @@ int glob;
// CHECK-TMOD-NEXT: [indexDeclaration]: kind: objc-class | name: Module | {{.*}} | loc: [[TMOD_MODULE_H]]:15:12
// CHECK-TMOD-NEXT: <ObjCContainerInfo>: kind: interface
// CHECK-TMOD-NEXT: [indexDeclaration]: kind: objc-class-method | name: version | {{.*}} | loc: [[TMOD_MODULE_H]]:16:1
-// CHECK-TMOD-NEXT: [indexDeclaration]: kind: objc-class-method | name: alloc | {{.*}} | loc: [[TMOD_MODULE_H]]:17:1
+// CHECK-TMOD-NEXT: [indexDeclaration]: kind: objc-class-method | name: alloc | {{.*}} | loc: [[TMOD_MODULE_H]]:17:2
// CHECK-TMOD-NEXT: [indexDeclaration]: kind: typedef | name: FILE | {{.*}} | loc: [[TMOD_MODULE_H]]:30:3
// CHECK-TMOD-NEXT: [indexDeclaration]: kind: struct | name: __sFILE | {{.*}} | loc: [[TMOD_MODULE_H]]:28:16
// CHECK-TMOD-NEXT: [indexDeclaration]: kind: field | name: _offset | {{.*}} | loc: [[TMOD_MODULE_H]]:29:7
OpenPOWER on IntegriCloud