-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
AST/Sema: Model custom availability domains #79070
AST/Sema: Model custom availability domains #79070
Conversation
@swift-ci please smoke test |
358d55a
to
76828ef
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
@@ -201,9 +201,42 @@ void AvailabilityInference::applyInferredAvailableAttrs( | |||
Decl *ToDecl, ArrayRef<const Decl *> InferredFromDecls) { | |||
auto &Context = ToDecl->getASTContext(); | |||
|
|||
class OrderedAvailabilityDomain { |
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.
Could you please comment-clarify the kind of ordering and its purpose that this does?
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.
Done
Availability attribute inferrence is currently the only thing that depends on having a total ordering on AvailabilityDomains.
Store the domain definitions defined on the command line on the `ModuleDecl` for the main module.
76828ef
to
1e76f19
Compare
@swift-ci please smoke test |
The diagnostic behavior it relied on is going away with swiftlang/swift#79070.
@swift-ci please smoke test |
SourceKit-LSP tests depend on the exact behavior of this diagnostic (which I don't plan to preserve) so I'm reverting the consolidation temporarily to get unblocked.
@swift-ci please smoke test |
Introduce a "custom" availability domain kind and store the domain definitions defined on the command line on the
ModuleDecl
as custom domains.