annotate clang/test/Index/complete-property-getset.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // Note: the run lines follow their respective tests, since line/column
anatofuz
parents:
diff changeset
2 // matter in this test.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @interface Super { }
anatofuz
parents:
diff changeset
5 - (int)getter1;
anatofuz
parents:
diff changeset
6 + (int)getter2_not_instance;
anatofuz
parents:
diff changeset
7 - (int)getter2_not:(int)x;
anatofuz
parents:
diff changeset
8 - (int)getter3;
anatofuz
parents:
diff changeset
9 - (void)setter1:(int)x;
anatofuz
parents:
diff changeset
10 + (void)setter2_not_inst:(int)x;
anatofuz
parents:
diff changeset
11 + (void)setter2_many_args:(int)x second:(int)y;
anatofuz
parents:
diff changeset
12 - (void)setter3:(int)y;
anatofuz
parents:
diff changeset
13 @property (getter = getter1, setter = setter1:) int blah;
anatofuz
parents:
diff changeset
14 @end
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 @interface Sub : Super { }
anatofuz
parents:
diff changeset
17 - (int)getter4;
anatofuz
parents:
diff changeset
18 - (void)setter4:(int)x;
anatofuz
parents:
diff changeset
19 @property (getter = getter4, setter = setter1:) int blarg;
anatofuz
parents:
diff changeset
20 @end
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 // RUN: c-index-test -code-completion-at=%s:13:21 %s | FileCheck -check-prefix=CHECK-CC1 %s
anatofuz
parents:
diff changeset
23 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}
anatofuz
parents:
diff changeset
24 // CHECK-CC1-NOT: getter2
anatofuz
parents:
diff changeset
25 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}
anatofuz
parents:
diff changeset
26 // RUN: c-index-test -code-completion-at=%s:13:39 %s | FileCheck -check-prefix=CHECK-CC2 %s
anatofuz
parents:
diff changeset
27 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}
anatofuz
parents:
diff changeset
28 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}
anatofuz
parents:
diff changeset
29 // CHECK-CC2-NOT: setter2
anatofuz
parents:
diff changeset
30 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}
anatofuz
parents:
diff changeset
31 // RUN: c-index-test -code-completion-at=%s:19:21 %s | FileCheck -check-prefix=CHECK-CC3 %s
anatofuz
parents:
diff changeset
32 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}
anatofuz
parents:
diff changeset
33 // CHECK-CC3-NOT: getter2
anatofuz
parents:
diff changeset
34 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}
anatofuz
parents:
diff changeset
35 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter4}
anatofuz
parents:
diff changeset
36 // RUN: c-index-test -code-completion-at=%s:19:39 %s | FileCheck -check-prefix=CHECK-CC4 %s
anatofuz
parents:
diff changeset
37 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}{Informative (int)x}
anatofuz
parents:
diff changeset
38 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}{Informative (int)x}
anatofuz
parents:
diff changeset
39 // CHECK-CC4-NOT: setter2
anatofuz
parents:
diff changeset
40 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}{Informative (int)y}
anatofuz
parents:
diff changeset
41 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter4:}{Informative (int)x}