Skip to content

Exclude @objcImpl member impls from PrintAsObjC #63986

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
Mar 1, 2023

Conversation

beccadax
Copy link
Contributor

@beccadax beccadax commented Mar 1, 2023

PrintAsClang was not aware of @objcImplementation. Teach it to skip over both member implementations (which are declared in handwritten headers, so printing them would be a redeclaration) and overrides (which may not be valid in a category, if e.g. they are declaring a designated initializer).

Fixes rdar://106035578.

@beccadax
Copy link
Contributor Author

beccadax commented Mar 1, 2023

@swift-ci please test

@beccadax beccadax requested a review from nkcsgexi March 1, 2023 02:01
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the timely fix!

PrintAsClang was not aware of @objcImplementation. Teach it to skip over both member implementations (which are declared in handwritten headers, so printing them would be a redeclaration) and overrides (which may not be valid in a category, if e.g. they are declaring a designated initializer).

Fixes rdar://106035578.
@beccadax beccadax force-pushed the dont-print-as-objc branch from 6541440 to 1629521 Compare March 1, 2023 05:34
@beccadax
Copy link
Contributor Author

beccadax commented Mar 1, 2023

@swift-ci please test

@beccadax beccadax merged commit 0543c28 into swiftlang:main Mar 1, 2023
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.

2 participants