mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In C++-Interop mode some of the Foundation @availables were not getting their "renamed:" attributes filled in and this was because of the LookupName issue as we have seen before where LookupName bails in C++ mode due to a nullptr scope resulting in something not getting imported completely. This patch merely passes a TUscope to avert this. I believe ignoring the existing enum issues this should bring Foundation with C++-Interop to parity with ObjC-Interop.
9 lines
682 B
C
9 lines
682 B
C
typedef char* NSString;
|
|
|
|
typedef NSString *NSValueTransformerName __attribute__((swift_wrapper(struct)));
|
|
|
|
extern "C" NSValueTransformerName const NSUnarchiveFromDataTransformerName
|
|
__attribute__((availability(macos,introduced=10.3,deprecated=10.14,replacement="NSSecureUnarchiveFromDataTransformerName")))
|
|
__attribute__((availability(ios,introduced=3.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName")))
|
|
__attribute__((availability(watchos,introduced=2.0,deprecated=5.0,replacement="NSSecureUnarchiveFromDataTransformerName")))
|
|
__attribute__((availability(tvos,introduced=9.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))); |