Skip to content

[ClangImporter] Use external_source_symbol to identify Swift decls #27355

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

jrose-apple
Copy link
Contributor

...rather than replacing particular macros with an annotate attribute and then looking for that. This isn't really any particular win except maybe ever-so-slightly faster module imports (with one fewer attribute being added to each declaration in a mixed-source header).

This doesn't remove the SWIFT_CLASS_EXTRA, SWIFT_PROTOCOL_EXTRA, or SWIFT_ENUM_EXTRA macros from PrintAsObjC (note that SWIFT_EXTENSION_EXTRA was never used). They're not exactly needed anymore, but they're not doing any harm if someone else is using them.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 62bd8122843a1d13c2964ac214be597a1500341b

@jrose-apple
Copy link
Contributor Author

I really thought I tested that. I'll update it later today.

...rather than replacing particular macros with an 'annotate'
attribute and then looking for that. This isn't /really/ any
particular win except maybe ever-so-slightly faster module imports
(with one fewer attribute being added to each declaration in a
mixed-source header).

This doesn't remove the SWIFT_CLASS_EXTRA, SWIFT_PROTOCOL_EXTRA, or
SWIFT_ENUM_EXTRA macros from PrintAsObjC (note that
SWIFT_EXTENSION_EXTRA was never used). They're not exactly needed
anymore, but they're not doing any harm if someone else is using them.
@jrose-apple jrose-apple force-pushed the i-still-cannot-believe-pragma-clang-attribute-push-is-a-thing branch from 62bd812 to 7b2f63f Compare September 25, 2019 17:01
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 62bd8122843a1d13c2964ac214be597a1500341b

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 62bd8122843a1d13c2964ac214be597a1500341b

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test macOS

@jrose-apple jrose-apple merged commit caa5be8 into swiftlang:master Sep 25, 2019
@jrose-apple jrose-apple deleted the i-still-cannot-believe-pragma-clang-attribute-push-is-a-thing branch September 25, 2019 22:30
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.

6 participants