Files
swift-mirror/test/Interop/Cxx/library-evolution/Inputs/my_c_header.h
Egor Zhdan 00e6b360d5 [cxx-interop] Assume that plain-C enums are resilient
This fixes sudden compiler errors that are emitted when trying to use CoreText.framework with C++ interop enabled.

When Swift is trying to rebuild a dependency module from its textual interface, it should not complain on usages of C enums in public Swift APIs.

This still leaves the resilience safety guardrail enabled for C++ scoped enums.

rdar://143215914
2025-01-21 18:57:10 +00:00

12 lines
125 B
C

struct MyCStruct {
int x;
};
enum MyCEnum {
MCE_One, MCE_Two
};
enum MyCFixedEnum : unsigned {
MCFE_One, MCFE_Two
};