[interop][SwiftToCxx] avoid importing C++ stdlib in C++ section of generated header inside of 'pragma clang attribute' block

This commit is contained in:
Alex Lorenz
2023-05-04 16:59:16 -07:00
committed by Alex Lorenz
parent 3bad9069a6
commit f4f6f7a408
4 changed files with 46 additions and 9 deletions

View File

@@ -92,6 +92,9 @@
// CHECK-LABEL: #if defined(__OBJC__)
// CHECK-NEXT: #endif
// CHECK-NEXT: #if __has_attribute(external_source_symbol)
// CHECK-NEXT: # pragma clang attribute pop
// CHECK-NEXT: #endif
// CHECK-NEXT: #if defined(__cplusplus)
// CHECK-NEXT: #pragma clang diagnostic push
// CHECK-NEXT: #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"