-
Notifications
You must be signed in to change notification settings - Fork 463
[SwiftWarningControl] Keep track of enabled diagnostic group identifiers #3179
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
base: main
Are you sure you want to change the base?
Conversation
|
@swift-ci test |
|
@swift-ci test Windows platform |
e52ea22 to
45401fd
Compare
|
@swift-ci test |
|
@swift-ci test Windows platform |
3039f19 to
86ac634
Compare
|
@swift-ci test |
|
@swift-ci test Windows platform |
| /// Produce a set of diagnostic group identifiers contained in | ||
| /// this tree which have a behavior specifier other than `ignored`. | ||
| @_spi(ExperimentalLanguageFeatures) | ||
| public func getEnabledDiagnosticGroups() -> Set<DiagnosticGroupIdentifier> { |
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.
Should this just be a computed property? Or rather, why not expose enabledGroups as @_spi(…) public private(set)?
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.
Yeah, that makes sense. Changed to be a @_spi(…) public private(set) property.
And add public API on `WarningControlRegionTree` to query them: `getEnabledDiagnosticGroups`. This is intended to be used by clients (the compiler) to be able to query whether a given diagnostic group has been enabled in a given source file.
86ac634 to
bc8fd0a
Compare
|
@swift-ci test |
1 similar comment
|
@swift-ci test |
Add public API on
WarningControlRegionTreeto query them:getEnabledDiagnosticGroups. This is intended to be used by clients (the compiler) to be able to query whether a given diagnostic group has been enabled in a given source file.