Files
swift-mirror/test/SILGen/Inputs/c_implementation.h
Robert Widmann 557185f27d Allow Ownership-Audited CF Types in @c @implementation Declarations
Relax the foreign representable predicate to enable (ownership-audited) CF Types to be specified as parameters and return types of Swift implementations.

Resolves rdar://175682727
2026-07-01 00:24:03 +01:00

16 lines
428 B
C

@import Foundation;
#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
#define CF_CONSUMED __attribute__((cf_consumed))
CF_RETURNS_RETAINED
CFStringRef returns_retained(void);
CF_RETURNS_NOT_RETAINED
CFStringRef returns_not_retained(void);
void passes_borrowed(CFStringRef string);
void passes_consumed(CF_CONSUMED CFStringRef string);