From c32509bcd40b639b768e72231a97e02e9c627ace Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 5 Mar 2014 19:10:31 +0000 Subject: [PATCH] [code-completion] Add a couple of test cases suggested by Jordan, and a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202995 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Index/complete-method-decls.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Index/complete-method-decls.m b/test/Index/complete-method-decls.m index ce2f4dc0d5..eceaa833fc 100644 --- a/test/Index/complete-method-decls.m +++ b/test/Index/complete-method-decls.m @@ -72,8 +72,13 @@ - (oneway void)method:(in id x) {} @end +typedef A MyObject; +typedef A *MyObjectRef; + @interface I1 -(Class)meth; +-(MyObject *)meth2; +-(MyObjectRef)meth3; @end @implementation I1 @@ -191,5 +196,8 @@ // RUN: c-index-test -code-completion-at=%s:72:2 %s | FileCheck -check-prefix=CHECK-ONEWAY %s // CHECK-ONEWAY: ObjCInstanceMethodDecl:{LeftParen (}{Text oneway }{Text void}{RightParen )}{TypedText method}{TypedText :}{LeftParen (}{Text in }{Text id}{RightParen )}{Text x} (40) -// RUN: c-index-test -code-completion-at=%s:80:2 %s | FileCheck -check-prefix=CHECK-CLASSTY %s +// RUN: c-index-test -code-completion-at=%s:85:2 %s | FileCheck -check-prefix=CHECK-CLASSTY %s // CHECK-CLASSTY: ObjCInstanceMethodDecl:{LeftParen (}{Text Class}{RightParen )}{TypedText meth} +// FIXME: It should be "MyObject *"" +// CHECK-CLASSTY: ObjCInstanceMethodDecl:{LeftParen (}{Text A *}{RightParen )}{TypedText meth2} +// CHECK-CLASSTY: ObjCInstanceMethodDecl:{LeftParen (}{Text MyObjectRef}{RightParen )}{TypedText meth3} -- 2.40.0