Skip to content

Sema: add support for __attribute__((__swift_newtype__)) #1833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

compnerd
Copy link
Member

Add the swift_newtype attribute which allows a type definition to be
imported into Swift as a new type. The imported type must be either an
enumerated type (enum) or an object type (struct).

This is based on the work of the original changes in
llvm/llvm-project-staging@8afaf3a

Pre-apply upstream patch for swift_newtype.

@compnerd
Copy link
Member Author

Upstream Review: https://reviews.llvm.org/D87652

@compnerd
Copy link
Member Author

@swift-ci please test

Add the `swift_newtype` attribute which allows a type definition to be
imported into Swift as a new type.  The imported type must be either an
enumerated type (enum) or an object type (struct).

This is based on the work of the original changes in
llvm/llvm-project-staging@8afaf3a

Pre-apply upstream patch for `swift_newtype`.
@compnerd compnerd force-pushed the swift_newtype-preapply branch from 80200e0 to 05dbe9c Compare September 24, 2020 01:54
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 8e505ae into swiftlang:apple/main Sep 24, 2020
@compnerd compnerd deleted the swift_newtype-preapply branch September 24, 2020 15:16
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.

1 participant