summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/Core/index-source.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-03 05:33:54 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-03 05:33:54 +0000
commit34a0c1a572de6f0baa3f2d6541f40a1eebc3f4dd (patch)
treed3e83b4a32b25485aeaac7b3258392a93e8e4401 /clang/test/Index/Core/index-source.m
parentd68a4d6ae0e082e1b1cd404847f3918ecd9e2f74 (diff)
downloadbcm5719-llvm-34a0c1a572de6f0baa3f2d6541f40a1eebc3f4dd.tar.gz
bcm5719-llvm-34a0c1a572de6f0baa3f2d6541f40a1eebc3f4dd.zip
[index] Report references of ObjC super class/protocols in interfaces and protocols.
llvm-svn: 262584
Diffstat (limited to 'clang/test/Index/Core/index-source.m')
-rw-r--r--clang/test/Index/Core/index-source.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Index/Core/index-source.m b/clang/test/Index/Core/index-source.m
index c2604f67545..766b6b198f2 100644
--- a/clang/test/Index/Core/index-source.m
+++ b/clang/test/Index/Core/index-source.m
@@ -18,3 +18,23 @@ void goo(Base *b) {
// CHECK-NEXT: RelRec | Base | c:objc(cs)Base
[b meth];
}
+
+// CHECK: [[@LINE+1]]:11 | objc-protocol/ObjC | Prot1 | c:objc(pl)Prot1 | <no-cgname> | Decl | rel: 0
+@protocol Prot1
+@end
+
+// CHECK: [[@LINE+3]]:11 | objc-protocol/ObjC | Prot2 | c:objc(pl)Prot2 | <no-cgname> | Decl | rel: 0
+// CHECK: [[@LINE+2]]:17 | objc-protocol/ObjC | Prot1 | c:objc(pl)Prot1 | <no-cgname> | Ref,RelBase | rel: 1
+// CHECK-NEXT: RelBase | Prot2 | c:objc(pl)Prot2
+@protocol Prot2<Prot1>
+@end
+
+// CHECK: [[@LINE+7]]:12 | objc-class/ObjC | Sub | c:objc(cs)Sub | _OBJC_CLASS_$_Sub | Decl | rel: 0
+// CHECK: [[@LINE+6]]:18 | objc-class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelBase | rel: 1
+// CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
+// CHECK: [[@LINE+4]]:23 | objc-protocol/ObjC | Prot2 | c:objc(pl)Prot2 | <no-cgname> | Ref,RelBase | rel: 1
+// CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
+// CHECK: [[@LINE+2]]:30 | objc-protocol/ObjC | Prot1 | c:objc(pl)Prot1 | <no-cgname> | Ref,RelBase | rel: 1
+// CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
+@interface Sub : Base<Prot2, Prot1>
+@end
OpenPOWER on IntegriCloud