@@ -19,32 +19,32 @@ func foo(
19
19
20
20
// RUN: %empty-directory(%t)
21
21
// RUN: %target-swift-frontend -emit-module -o %t/SwiftModule.swiftmodule -module-name SwiftModule %S/../Inputs/vfs/SwiftModule/SwiftModule.swift
22
- // RUN: %sourcekitd-test -req=complete.open -pos=9:28 -vfs-files=/ target_file1.swift=@%s,/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule / target_file1.swift -pass-as-sourcetext -- / target_file1.swift / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-CMODULE %s
23
- // RUN: %sourcekitd-test -req=complete.open -pos=10:32 -vfs-files=/ target_file1.swift=@%s,/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule / target_file1.swift -pass-as-sourcetext -- / target_file1.swift / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-SWIFTMODULE %s
24
- // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -vfs-files=/ target_file1.swift=@%s,/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule / target_file1.swift -pass-as-sourcetext -- / target_file1.swift / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-SAMETARGET %s
22
+ // RUN: %sourcekitd-test -req=complete.open -pos=9:28 -vfs-files=%t/VFS/ target_file1.swift=@%s,%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %t/VFS/ target_file1.swift -pass-as-sourcetext -- %t/VFS/ target_file1.swift %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-CMODULE %s
23
+ // RUN: %sourcekitd-test -req=complete.open -pos=10:32 -vfs-files=%t/VFS/ target_file1.swift=@%s,%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %t/VFS/ target_file1.swift -pass-as-sourcetext -- %t/VFS/ target_file1.swift %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-SWIFTMODULE %s
24
+ // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -vfs-files=%t/VFS/ target_file1.swift=@%s,%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %t/VFS/ target_file1.swift -pass-as-sourcetext -- %t/VFS/ target_file1.swift %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple | %FileCheck --check-prefix=CHECK-SAMETARGET %s
25
25
26
26
// RUN: not %sourcekitd-test -req=complete.open -vfs-name nope %s -pass-as-sourcetext -dont-print-request -pos=9:27 2>&1 | %FileCheck %s -check-prefix=NONEXISTENT_VFS_ERROR
27
27
// NONEXISTENT_VFS_ERROR: error response (Request Failed): unknown virtual filesystem 'nope'
28
28
29
- // RUN: not %sourcekitd-test -req=complete.open -pos=11:31 -vfs-files=/ target_file1.swift=@%s,/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule / target_file1.swift -pass-as-sourcetext -- / target_file1.swift / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple \
30
- // RUN: == -req=complete.update -pos=11:31 -vfs-files=/ target_file1.swift=@%s,/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule /target_file1.swift 2>&1 | %FileCheck --check-prefix=UNSUPPORTED_REQ %s
29
+ // RUN: not %sourcekitd-test -req=complete.open -pos=11:31 -vfs-files=%t/VFS/ target_file1.swift=@%s,%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %t/VFS/ target_file1.swift -pass-as-sourcetext -- %t/VFS/ target_file1.swift %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple \
30
+ // RUN: == -req=complete.update -pos=11:31 -vfs-files=%t/VFS/ target_file1.swift=@%s,%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %t/VFS /target_file1.swift 2>&1 | %FileCheck --check-prefix=UNSUPPORTED_REQ %s
31
31
// UNSUPPORTED_REQ: error response (Request Invalid): This request does not support custom filesystems
32
32
33
- // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -dont-print-response -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple \
33
+ // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -dont-print-response -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple \
34
34
// RUN: == -req=complete.update -pos=11:31 %s | %FileCheck --check-prefix=CHECK-SAMETARGET %s
35
35
36
- // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -dont-print-response -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple \
36
+ // RUN: %sourcekitd-test -req=complete.open -pos=11:31 -dont-print-response -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple \
37
37
// RUN: == -req=complete.update -pos=11:31 -req-opts=filtertext=method %s | %FileCheck --check-prefix=CHECK-SAMETARGET %s
38
38
39
39
// Inner completion.
40
- // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -req-opts=filtertext=StructDefinedInSameTarget -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple | %FileCheck --check-prefix=INNER_SAMETARGET %s
41
- // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -dont-print-response -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple \
40
+ // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -req-opts=filtertext=StructDefinedInSameTarget -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple | %FileCheck --check-prefix=INNER_SAMETARGET %s
41
+ // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -dont-print-response -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple \
42
42
// RUN: == -req=complete.update -pos=9:1 -req-opts=filtertext=StructDefinedInSameTarget %s | %FileCheck --check-prefix=INNER_SAMETARGET %s
43
43
// INNER_SAMETARGET: key.name: "StructDefinedInSameTarget"
44
44
// INNER_SAMETARGET: key.name: "StructDefinedInSameTarget."
45
45
46
- // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -req-opts=filtertext=StructDefinedInCModule -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple | %FileCheck --check-prefix=INNER_CMODULE %s
47
- // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -dont-print-response -vfs-files=/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s / target_file2.swift -I / CModule -I /SwiftModule -target %target-triple \
46
+ // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -req-opts=filtertext=StructDefinedInCModule -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple | %FileCheck --check-prefix=INNER_CMODULE %s
47
+ // RUN: %sourcekitd-test -req=complete.open -pos=9:1 -dont-print-response -vfs-files=%t/VFS/ target_file2.swift=@%S/../Inputs/vfs/other_file_in_target.swift,%t/VFS/ CModule/module.modulemap=%S/../Inputs/vfs/CModule/module.modulemap,%t/VFS/ CModule/CModule.h=%S/../Inputs/vfs/CModule/CModule.h,%t/VFS/ SwiftModule/SwiftModule.swiftmodule=%t/SwiftModule.swiftmodule %s -pass-as-sourcetext -- %s %t/VFS/ target_file2.swift -I %t/VFS/ CModule -I %t/VFS /SwiftModule -target %target-triple \
48
48
// RUN: == -req=complete.update -pos=9:1 -req-opts=filtertext=StructDefinedInCModule %s | %FileCheck --check-prefix=INNER_CMODULE %s
49
49
// INNER_CMODULE: key.name: "StructDefinedInCModule"
50
50
// INNER_CMODULE: key.name: "StructDefinedInCModule."
0 commit comments