-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ClangImporter] Refactor availability attribute importing logic. NFC. #22872
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
[ClangImporter] Refactor availability attribute importing logic. NFC. #22872
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new code is so clean.
Refactor the PlatformAvailability logic for determining which Clang availability attributes are relevant when importing. The goal is to separate the logic for attribute relevance for a given platform from the logic to determine whether a deprecated attribute should be imported as unavailable in Swift. This also makes it possible for the "deprecated-as-unavailable" logic to refer to the underlying Clang declaration, which is functionality that will be used in a later commit. This commit has no intended functional change. Part of rdar://problem/48348822
90ca6d7
to
e80116d
Compare
@swift-ci please test |
Build failed |
Build failed |
e80116d
to
b3ff2d8
Compare
Updated expected diagnostic text in SourceKit/DocSupport/doc_clang_module.swift.response |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci please test and merge |
1 similar comment
@swift-ci please test and merge |
@swift-ci Please clean test OS X platform |
Refactor the PlatformAvailability logic for determining
which Clang availability attributes are relevant when importing. The goal
is to separate the logic for attribute relevance for a given platform from
the logic to determine whether a deprecated attribute should be imported as
unavailable in Swift.
This also makes it possible for the "deprecated-as-unavailable" logic to
refer to the underlying Clang declaration, which is functionality that will
be used in a later commit.
This commit has no intended functional change.
Part of rdar://problem/48348822