brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · f4424ce Raw
42 lines · plain
1// Note: the run lines follow their respective tests, since line/column2// matter in this test.3 4@interface Super { }5- (int)getter1;6+ (int)getter2_not_instance;7- (int)getter2_not:(int)x;8- (int)getter3;9- (void)setter1:(int)x;10+ (void)setter2_not_inst:(int)x;11+ (void)setter2_many_args:(int)x second:(int)y;12- (void)setter3:(int)y;13@property (getter = getter1, setter = setter1:) int blah;14@end15 16@interface Sub : Super { }17- (int)getter4;18- (void)setter4:(int)x;19@property (getter = getter4, setter = setter1:) int blarg;20@end21 22// RUN: c-index-test -code-completion-at=%s:13:21 %s | FileCheck -check-prefix=CHECK-CC1 %s23// CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}24// CHECK-CC1-NOT: getter225// CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}26// RUN: c-index-test -code-completion-at=%s:13:39 %s | FileCheck -check-prefix=CHECK-CC2 %s27// CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}28// CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}29// CHECK-CC2-NOT: setter230// CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}31// RUN: c-index-test -code-completion-at=%s:19:21 %s | FileCheck -check-prefix=CHECK-CC3 %s32// CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}33// CHECK-CC3-NOT: getter234// CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}35// CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter4}36// RUN: c-index-test -code-completion-at=%s:19:39 %s | FileCheck -check-prefix=CHECK-CC4 %s37// CHECK-CC4: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}{Informative (int)x}38// CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}{Informative (int)x}39// CHECK-CC4-NOT: setter240// CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}{Informative (int)y}41// CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter4:}{Informative (int)x}42