Skip to content

[5.3][SourceKit] Report macCatalyst availability as macCatalyst rather than iOS #31536

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

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented May 4, 2020

Cherry-pick of #31466 for 5.3.

  • Explanation:
    SourceKit's doc-info request was incorrectly reporting the platform of @available(macCatalyst, ...) attributes as source.availability.platform.ios rather than source.availability.platform.maccatalyst.

  • Scope of issue: Only impacts sourcekitd's doc-info request. Other sourcekitd requests and the compiler are unaffected.

  • Origination: Has been an issue since explicit macCatalyst availability attribute support was added.

  • Risk: Low. It's a single line change and only impacts SourceKit's doc-info request.

  • Testing: Added a regression test for this case and all existing tests pass.

  • Reviewer: Rintaro Ishizaki (@rintaro) on the master branch PR

Resolves rdar://problem/60918688

@nathawes
Copy link
Contributor Author

nathawes commented May 4, 2020

@swift-ci please test

@theblixguy theblixguy added the r5.3 label May 4, 2020
@nathawes nathawes marked this pull request as ready for review May 6, 2020 18:39
@nathawes nathawes requested a review from a team as a code owner May 6, 2020 18:39
@nathawes
Copy link
Contributor Author

nathawes commented May 6, 2020

@swift-ci please nominate

@nathawes nathawes requested a review from akyrtzi May 6, 2020 18:41
@nathawes nathawes merged commit e8df655 into swiftlang:release/5.3 May 6, 2020
@nathawes nathawes deleted the doc-info-availability-catalyst-fix-5.3 branch May 6, 2020 18:46
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants