Skip to content

Conversation

@egorzhdan
Copy link

I am planning to put up a patch upstream as well.

rdar://127262612

…edef names

It is common practice in C to declare anonymous tags that are
immediately given a typedef name, e.g.,

    typedef enum { ... } MyType;

At present, one can only express API notes on the typedef. However, that
excludes the possibility of tag-specific notes like EnumExtensibility.
For these anonymous declarations, process API notes using the typedef
name as the tag name, so that one can add API notes to `MyType` via
the `Tags` section.
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@egorzhdan egorzhdan merged commit c7caadc into stable/20240723 Sep 16, 2024
@egorzhdan egorzhdan deleted the egorzhdan/20240723-apinotes-enum branch September 16, 2024 18:39
egorzhdan added a commit to swiftlang/swift that referenced this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants