r202995 - [code-completion] Add a couple of test cases suggested by Jordan, and a FIXME.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Mar 5 11:10:31 PST 2014
Author: akirtzidis
Date: Wed Mar 5 13:10:31 2014
New Revision: 202995
URL: http://llvm.org/viewvc/llvm-project?rev=202995&view=rev
Log:
[code-completion] Add a couple of test cases suggested by Jordan, and a FIXME.
Modified:
cfe/trunk/test/Index/complete-method-decls.m
Modified: cfe/trunk/test/Index/complete-method-decls.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/complete-method-decls.m?rev=202995&r1=202994&r2=202995&view=diff
==============================================================================
--- cfe/trunk/test/Index/complete-method-decls.m (original)
+++ cfe/trunk/test/Index/complete-method-decls.m Wed Mar 5 13:10:31 2014
@@ -72,8 +72,13 @@
- (oneway void)method:(in id x) {}
@end
+typedef A MyObject;
+typedef A *MyObjectRef;
+
@interface I1
-(Class<P1>)meth;
+-(MyObject <P1> *)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<P1>}{RightParen )}{TypedText meth}
+// FIXME: It should be "MyObject <P1> *""
+// CHECK-CLASSTY: ObjCInstanceMethodDecl:{LeftParen (}{Text A<P1> *}{RightParen )}{TypedText meth2}
+// CHECK-CLASSTY: ObjCInstanceMethodDecl:{LeftParen (}{Text MyObjectRef}{RightParen )}{TypedText meth3}
More information about the cfe-commits
mailing list