mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This attribute introduces some conversions between the annotated smart pointer type and the native swift reference type. In the future we plan to introduce bridging so the smart pointer type can be hidden in the signature and we can automatically convert it to the native Swift reference type on the ABI boundaries. This PR is using a new way to use swift_attr attributes. Instead of doing the parsing in the clang importer it falls back to Swift's attribute parsing and makes sure that the annotation has valid Swift attribute syntax. rdar://156521316