@@ -52,9 +52,9 @@ public func makeProtoWithAssocType() -> some ProtoWithAssocType { return StructW
5252import Lib
5353
5454// RUN: %empty-directory(%t/completion-cache)
55- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
55+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
5656// Perform the same completion again, this time using the code completion cache that implicitly gets added to swift-ide-test
57- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
57+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
5858
5959func test( ) -> MyProto {
6060 return #^COMPLETE^#
@@ -71,9 +71,9 @@ func test() -> MyProto {
7171
7272
7373// RUN: %empty-directory(%t/completion-cache)
74- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
74+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
7575// Perform the same completion again, this time using the code completion cache that implicitly gets added to swift-ide-test
76- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
76+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
7777
7878func testOpaqueComposition( ) -> some MyProto & MyOtherProto {
7979 return #^COMPLETE_OPAQUE_COMPOSITION^#
@@ -89,9 +89,9 @@ func testOpaqueComposition() -> some MyProto & MyOtherProto {
8989// COMPLETE_OPAQUE_COMPOSITION: End completions
9090
9191// RUN: %empty-directory(%t/completion-cache)
92- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
92+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
9393// Perform the same completion again, this time using the code completion cache
94- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
94+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
9595
9696func testAlsoConsiderMetatype( ) -> MyClass . Type {
9797 return #^ALSO_CONSIDER_METATYPE^#
@@ -103,9 +103,9 @@ func testAlsoConsiderMetatype() -> MyClass.Type {
103103// ALSO_CONSIDER_METATYPE: End completions
104104
105105// RUN: %empty-directory(%t/completion-cache)
106- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
106+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
107107// Perform the same completion again, this time using the code completion cache
108- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
108+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
109109func testOpaqueWithClass< T: MyClass & MyProto > ( ) -> T {
110110 return #^OPAQUE_WITH_CLASS^#
111111}
@@ -121,9 +121,9 @@ func testOpaqueWithClass<T: MyClass & MyProto>() -> T {
121121// OPAQUE_WITH_CLASS: End completions
122122
123123// RUN: %empty-directory(%t/completion-cache)
124- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
124+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
125125// Perform the same completion again, this time using the code completion cache
126- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
126+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
127127func testGenericReturn< T: MyProto > ( ) -> T {
128128 return #^GENERIC_RETURN^#
129129}
@@ -140,9 +140,9 @@ func testGenericReturn<T: MyProto>() -> T {
140140// GENERIC_RETURN: End completions
141141
142142// RUN: %empty-directory(%t/completion-cache)
143- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
143+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
144144// Perform the same completion again, this time using the code completion cache
145- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
145+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
146146func testGenericReturn( ) -> some MyClass & MyProto {
147147 return #^OPAQUE_CLASS_AND_PROTOCOL^#
148148}
@@ -157,9 +157,9 @@ func testGenericReturn() -> some MyClass & MyProto {
157157// OPAQUE_CLASS_AND_PROTOCOL: End completions
158158
159159// RUN: %empty-directory(%t/completion-cache)
160- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
160+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
161161// Perform the same completion again, this time using the code completion cache
162- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
162+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
163163func testGenericReturn( ) -> MyBaseProto {
164164 return #^TRANSITIVE_CONFORMANCE^#
165165}
@@ -181,9 +181,9 @@ func testGenericReturn() -> MyBaseProto {
181181
182182
183183// RUN: %empty-directory(%t/completion-cache)
184- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
184+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
185185// Perform the same completion again, this time using the code completion cache
186- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
186+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
187187func protoWithAssocType( ) -> ProtoWithAssocType {
188188 return #^PROTO_WITH_ASSOC_TYPE^#
189189}
@@ -195,17 +195,17 @@ func protoWithAssocType() -> ProtoWithAssocType {
195195// PROTO_WITH_ASSOC_TYPE: End completions
196196
197197// RUN: %empty-directory(%t/completion-cache)
198- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
198+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
199199// Perform the same completion again, this time using the code completion cache
200- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
200+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
201201func protoWithAssocTypeInOpaqueContext( ) -> some ProtoWithAssocType {
202202 return #^PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT^#
203203}
204204
205205// RUN: %empty-directory(%t/completion-cache)
206- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath
206+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath
207207// Perform the same completion again, this time using the code completion cache
208- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT
208+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT
209209func protoWithAssocTypeInGenericContext< T: ProtoWithAssocType > ( ) -> T {
210210 return #^PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT^#
211211}
0 commit comments