-
Notifications
You must be signed in to change notification settings - Fork 10.5k
cleanup LangOptions #28457
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
cleanup LangOptions #28457
Conversation
@swift-ci please test |
Build failed |
Build failed |
9e4634c
to
1808f5b
Compare
@swift-ci please test |
Build failed |
Build failed |
Switch over `Triple::getOS` instead of a series of cascading `if`s. This simplifies the handling of adding new entries. It also makes the precedence ordering more explicit.
Collapse the cases into a single set rather than adding a case for each entry. This is easier to read/follow. NFC.
Rather than an if repeating the condition, simplify using a ternary for the value. NFC.
The platform versions are really only used on Darwin platforms. Simplify the path by defaulting to `0.0.0` on all platforms, and handling the version number on supported platforms.
1808f5b
to
851f877
Compare
@swift-ci please test |
Build failed |
Build failed |
@dgregor what do you think? |
I have a building backlog of patches. I'd like to get this merged so I can start flushing them. |
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.