its location the location of the property.
Part of rdar://
11113120
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153708
91177308-0d34-0410-b5e6-
96231b3b80d8
-(void)mm:(struct S*)s {
rdar10902015 *i = 0;
s->x = 0;
+ Test1 *test1;
+ test1.name = 0;
}
@end
// RUN: c-index-test -cursor-at=%s:38:6 -cursor-at=%s:40:11 %s | FileCheck -check-prefix=CHECK-MEMBERREF %s
// CHECK-MEMBERREF: 38:6 MemberRefExpr=x:34:16 SingleRefName=[38:6 - 38:7] RefName=[38:6 - 38:7] Extent=[38:3 - 38:7]
+// CHECK-MEMBERREF: 40:9 MemberRefExpr=name:23:21 Extent=[40:3 - 40:13] Spelling=name
return Ivar->getLocation();
if (SizeOfPackExpr *SizeOfPack = dyn_cast<SizeOfPackExpr>(E))
return SizeOfPack->getPackLoc();
+ if (ObjCPropertyRefExpr *PropRef = dyn_cast<ObjCPropertyRefExpr>(E))
+ return PropRef->getLocation();
return E->getLocStart();
}