1 // This test is line- and column-sensitive. See below for run lines.
5 - instanceMethod:(int)value withOther:(int)other;
16 [a instanceMethod:0 withOther:1];
18 [super instanceMethod];
20 [a,self instanceMethod:0 withOther:1]{};
25 // RUN: c-index-test -code-completion-at=%s:14:6 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC1 %s
26 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType id}{TypedText instanceMethod:}{Placeholder (int)}{HorizontalSpace }{TypedText withOther:}{Placeholder (int)} (35)
28 // RUN: c-index-test -code-completion-at=%s:15:6 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC2 %s
29 // CHECK-CC2: ObjCClassMethodDecl:{ResultType id}{TypedText classMethod} (35)
31 // RUN: c-index-test -code-completion-at=%s:16:4 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC3 %s
32 // CHECK-CC3: ObjCInterfaceDecl:{TypedText A} (50)
33 // CHECK-CC3: ParmDecl:{ResultType A *}{TypedText a} (34)
34 // CHECK-CC3: ObjCInterfaceDecl:{TypedText B} (50)
35 // CHECK-CC3: TypedefDecl:{TypedText Class} (50)
38 // RUN: c-index-test -code-completion-at=%s:16:21 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC4 %s
39 // CHECK-CC4: NotImplemented:{ResultType B *}{TypedText self} (34)
40 // CHECK-CC4: NotImplemented:{ResultType A *}{TypedText super} (40)
42 // RUN: c-index-test -code-completion-at=%s:18:10 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC1 %s
44 // RUN: c-index-test -code-completion-at=%s:19:8 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC5 %s
45 // CHECK-CC5: NotImplemented:{ResultType SEL}{TypedText _cmd} (34)
46 // CHECK-CC5-NEXT: NotImplemented:{ResultType B *}{TypedText self} (34)
48 // RUN: c-index-test -code-completion-at=%s:20:11 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC6 %s
49 // CHECK-CC6: ObjCInstanceMethodDecl:{ResultType id}{TypedText instanceMethod:}{Placeholder (int)}{HorizontalSpace }{TypedText withOther:}{Placeholder (int)} (37)
50 // CHECK-CC6-NEXT: ObjCInstanceMethodDecl:{ResultType id}{TypedText someMethod:}{Placeholder (A *)} (32)