Skip to content

[clang] Only use warn_nserrordomain_invalid_decl for APINotes #2373

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
Jan 25, 2021

Conversation

xymus
Copy link

@xymus xymus commented Jan 25, 2021

Only warn on an invalid error domain set via APINotes as a temporary workaround until clients are updated.

This is fix for the workaround in #2368.

Only warn on an invalid error domain set via APINotes as a temporary
workaround until clients are updated.
@xymus
Copy link
Author

xymus commented Jan 25, 2021

@swift-ci Please test

@xymus
Copy link
Author

xymus commented Jan 25, 2021

@DougGregor FYI, the enum causing the issue here was associated to the error domain by an APINote only. Which explains why it was just a NS_ENUM and also what in the upstreaming has changed how the check was applied.

@xymus
Copy link
Author

xymus commented Jan 25, 2021

These are the same failing tests as before. There's no test for the APINotes use of ns_error_domain.

@xymus xymus merged commit df49a4b into swiftlang:swift/rebranch Jan 25, 2021
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