Skip to content

[ffigen] Include API_AVAILABLE annotations in ObjC code #2942

@liamappelbe

Description

@liamappelbe

Our generated ObjC code should use API_AVAILABLE annotations where appropriate. For example, block trampolines should be annotated with API_AVAILABLE corresponding to the types in the block's signature.

The thing that makes this non-trivial is that a block can have arbitrarily many types in its signature, so we'll need to union the availability annotations from all of them. Best way to do this would be to add a method on Type that calculates the ApiAvailability of the type.

Related to #2904

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good starting issue for contributors (issues with this label will appear in /contribute)package:ffigen

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions