Skip to content

[5.5] Mark imported @completionHandlerAsync attrs as implicit #37172

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 4 commits into from
Apr 30, 2021

Conversation

hamishknight
Copy link
Contributor

5.5 cherry-pick of #37170


Marking the attribute user-inaccessible is too extreme, as we still want it to appear in things like code completion and generated interfaces if it was explicitly written by the user. Instead, mark the attribute as implicit when it's added by the Clang Importer, which stops it from being printed in the generated interface.

In addition, fix a typo with the printing of @completionHandlerAsync.

Resolves rdar://76685011.

This is too extreme, as we still want the attribute
to appear in things like code completion and
generated interfaces if it was explicitly written
by the user.

Reverts a2b5f68,
but keeps the test case intact.
Mark imported `@completionHandlerAsync` attrs as
implicit, which avoids printing them in generated
interfaces. And for the sake of completion,
serialize the implicit bit in case it's used
elsewhere in the future.

To make sure we continue to print
`@completionHandlerAsync` attributes explicitly
written by the user in Swift, add a SourceKit
interface test.

Resolves rdar://76685011
Now that @completionHandlerAsync is implicit for
imported decls, we need to enable implicit attrs in
a couple of tests that are testing its presence.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from akyrtzi April 30, 2021 10:46
@swiftlang swiftlang deleted a comment from swift-ci Apr 30, 2021
@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d4c6ed5

@akyrtzi
Copy link
Contributor

akyrtzi commented Apr 30, 2021

Failure is unrelated:

Failed Tests (1):
  lldb-shell :: SwiftREPL/BreakpointSimple.test

@akyrtzi akyrtzi merged commit 0f595d6 into swiftlang:release/5.5 Apr 30, 2021
@hamishknight hamishknight deleted the take-two-5.5 branch April 30, 2021 17:51
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 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.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants