[cxx-interop] Implicitly import Cxx module

This lifts the requirement for the user to explicitly add `import Cxx` in Swift code that relies on protocols from the `Cxx` module, such as `CxxSequence`.
This commit is contained in:
Egor Zhdan
2022-08-17 17:20:29 +01:00
parent 3daa8753c7
commit 6a88f75072
6 changed files with 15 additions and 19 deletions

View File

@@ -1,7 +1,5 @@
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomSequence -source-filename=x -I %S/Inputs -enable-experimental-cxx-interop -module-cache-path %t | %FileCheck %s
// CHECK: import Cxx
// CHECK: struct ConstIterator : UnsafeCxxInputIterator {
// CHECK: var pointee: Int32 { get }
// CHECK: func successor() -> ConstIterator