diff options
Diffstat (limited to 'test/Index/complete-objc-message.m')
-rw-r--r-- | test/Index/complete-objc-message.m | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/Index/complete-objc-message.m b/test/Index/complete-objc-message.m index aa10ea2..5a72005 100644 --- a/test/Index/complete-objc-message.m +++ b/test/Index/complete-objc-message.m @@ -193,6 +193,7 @@ void test_DO(DO *d, A* a) { // CHECK-CC1: {TypedText categoryClassMethod} (35) // CHECK-CC1: {TypedText classMethod1:}{Placeholder (id)}{HorizontalSpace }{TypedText withKeyword:}{Placeholder (int)} (35) // CHECK-CC1: {TypedText classMethod2} (35) +// CHECK-CC1: {TypedText instanceMethod1} (35) // CHECK-CC1: {TypedText new} (35) // CHECK-CC1: {TypedText protocolClassMethod} (37) // CHECK-CC1: Completion contexts: @@ -238,15 +239,15 @@ void test_DO(DO *d, A* a) { // CHECK-CC9: ObjCInstanceMethodDecl:{ResultType int}{Informative Method:}{Informative Arg1:}{TypedText OtherArg:}{Placeholder (id)} // CHECK-CC9: Objective-C selector: Method:Arg1: // RUN: c-index-test -code-completion-at=%s:61:11 %s | FileCheck -check-prefix=CHECK-CCA %s -// CHECK-CCA: TypedefDecl:{TypedText Class} -// CHECK-CCA-NEXT: ObjCInterfaceDecl:{TypedText Foo} -// CHECK-CCA-NOT: FunctionDecl:{ResultType void}{TypedText func}{LeftParen (}{RightParen )} -// CHECK-CCA:FunctionDecl:{ResultType MyClass *}{TypedText getMyClass}{LeftParen (}{RightParen )} -// CHECK-CCA: TypedefDecl:{TypedText id} -// CHECK-CCA: ObjCInterfaceDecl:{TypedText MyClass} -// CHECK-CCA: ObjCInterfaceDecl:{TypedText MySubClass} -// CHECK-CCA: {ResultType Class}{TypedText self} -// CHECK-CCA: {TypedText super} +// CHECK-CCA: TypedefDecl:{TypedText Class} (50) +// CHECK-CCA-NEXT: ObjCInterfaceDecl:{TypedText Foo} (50) +// CHECK-CCA-NOT: FunctionDecl:{ResultType void}{TypedText func}{LeftParen (}{RightParen )} (50) +// CHECK-CCA:FunctionDecl:{ResultType MyClass *}{TypedText getMyClass}{LeftParen (}{RightParen )} (50) +// CHECK-CCA: TypedefDecl:{TypedText id} (50) +// CHECK-CCA: ObjCInterfaceDecl:{TypedText MyClass} (50) +// CHECK-CCA: ObjCInterfaceDecl:{TypedText MySubClass} (50) +// CHECK-CCA: {ResultType Class}{TypedText self} (34) +// CHECK-CCA: {TypedText super} (40) // RUN: c-index-test -code-completion-at=%s:103:6 %s | FileCheck -check-prefix=CHECK-CCB %s // CHECK-CCB: ObjCInstanceMethodDecl:{ResultType int}{TypedText Method:}{Placeholder (int), ...} // CHECK-CCB: ObjCInstanceMethodDecl:{ResultType int}{TypedText SentinelMethod:}{Placeholder (int), ...}{Text , nil} |