[interop][SwiftToCxx] add _SwiftCxxInteroperability.h shims header and import it for C++ header mode

This commit is contained in:
Alex Lorenz
2022-07-28 20:38:33 +01:00
parent 63b652d523
commit 567bb850cc
8 changed files with 74 additions and 52 deletions

View File

@@ -31,8 +31,8 @@
// CHECK-NEXT: #include <cstring>
// CHECK-NEXT: #include <stdlib.h>
// CHECK-NEXT: #include <new>
// CHECK-NEXT: #if defined(_WIN32)
// CHECK-NEXT: #include <malloc.h>
// CHECK-NEXT: #if __has_include(<shims/_SwiftCxxInteroperability.h>)
// CHECK-NEXT: #include <shims/_SwiftCxxInteroperability.h>
// CHECK-NEXT: #endif
// CHECK-NEXT: #else
// CHECK-NEXT: #include <stdint.h>