|
94 | 94 | // CHECK-EMPTY:
|
95 | 95 | // CHECK-NEXT: #endif
|
96 | 96 | // CHECK-NEXT: #define SWIFT_CXX_INTEROP_STRING_MIXIN
|
| 97 | + |
97 | 98 | // CHECK-NEXT: #pragma clang diagnostic push
|
98 | 99 | // CHECK-NEXT: #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
| 100 | +// CHECK-NEXT: // Allow user to find the header using additional include paths |
| 101 | +// CHECK-NEXT: #if __has_include(<swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
| 102 | +// CHECK-NEXT: #include <swiftToCxx/_SwiftStdlibCxxOverlay.h> |
99 | 103 | // CHECK-NEXT: // Look for the C++ interop support header relative to clang's resource dir:
|
100 |
| -// CHECK-NEXT: // '<toolchain>/usr/lib/clang/<version>/include/../../../swift/swiftToCxx'. |
101 |
| -// CHECK-NEXT: #if __has_include(<../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
| 104 | +// CHECK-NEXT: // '<toolchain>/usr/lib/clang/<version>/include/../../../swift/swiftToCxx'. |
| 105 | +// CHECK-NEXT: #elif __has_include(<../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
102 | 106 | // CHECK-NEXT: #include <../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>
|
103 | 107 | // CHECK-NEXT: #elif __has_include(<../../../../../lib/swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>)
|
104 |
| -// CHECK-NEXT: // '<toolchain>/usr/local/lib/clang/<version>/include/../../../../../lib/swift/swiftToCxx'. |
| 108 | +// CHECK-NEXT: // '<toolchain>/usr/local/lib/clang/<version>/include/../../../../../lib/swift/swiftToCxx'. |
105 | 109 | // CHECK-NEXT: #include <../../../../../lib/swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>
|
106 |
| -// CHECK-NEXT: // Alternatively, allow user to find the header using additional include path into '<toolchain>/lib/swift'. |
107 |
| -// CHECK-NEXT: #elif __has_include(<swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
108 |
| -// CHECK-NEXT: #include <swiftToCxx/_SwiftStdlibCxxOverlay.h> |
109 | 110 | // CHECK-NEXT: #endif
|
110 | 111 | // CHECK-NEXT: #pragma clang diagnostic pop
|
111 | 112 | // CHECK-NEXT: private:
|
|
129 | 130 |
|
130 | 131 | // CHECK: #pragma clang diagnostic push
|
131 | 132 | // CHECK: #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
132 |
| -// CHECK: #if __has_include(<../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
| 133 | +// CHECK-NEXT: // Allow user to find the header using additional include paths |
| 134 | +// CHECK-NEXT: #if __has_include(<swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
| 135 | +// CHECK-NEXT: #include <swiftToCxx/_SwiftStdlibCxxOverlay.h> |
| 136 | +// CHECK-NEXT: // Look for the C++ interop support header relative to clang's resource dir: |
| 137 | +// CHECK-NEXT: // '<toolchain>/usr/lib/clang/<version>/include/../../../swift/swiftToCxx'. |
| 138 | +// CHECK-NEXT: #elif __has_include(<../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
133 | 139 | // CHECK-NEXT: #include <../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>
|
134 | 140 | // CHECK-NEXT: #elif __has_include(<../../../../../lib/swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>)
|
135 |
| -// CHECK-NEXT: // '<toolchain>/usr/local/lib/clang/<version>/include/../../../../../lib/swift/swiftToCxx'. |
| 141 | +// CHECK-NEXT: // '<toolchain>/usr/local/lib/clang/<version>/include/../../../../../lib/swift/swiftToCxx'. |
136 | 142 | // CHECK-NEXT: #include <../../../../../lib/swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>
|
137 |
| -// CHECK-NEXT: // Alternatively, allow user to find the header using additional include path into '<toolchain>/lib/swift'. |
138 |
| -// CHECK-NEXT: #elif __has_include(<swiftToCxx/_SwiftStdlibCxxOverlay.h>) |
139 |
| -// CHECK-NEXT: #include <swiftToCxx/_SwiftStdlibCxxOverlay.h> |
140 | 143 | // CHECK-NEXT: #endif
|
141 | 144 | // CHECK-NEXTZ: #pragma clang diagnostic pop
|
142 | 145 |
|
|
0 commit comments