Skip to content

Frontend: Obsolete -fixit-all and -emit-fixits-path #81280

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

Merged
merged 2 commits into from
May 7, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented May 4, 2025

With ARCMigrate and arcmt-test removed from clang in llvm/llvm-project#119269 and the new code migration experience under way (see swiftlang/swift-evolution#2673), these options are no longer relevant nor known to be in use. They were introduced long ago to support fix-it application in Xcode.

For now, turn them into a no-op and emit a obsoletion warning.


Sneaking in that second commit because I found a diagnostic verifier test in test/FixCode and couldn’t help it.

@AnthonyLatsis AnthonyLatsis force-pushed the arachnocampa-luminosa branch 5 times, most recently from 0cb7c23 to d162b62 Compare May 4, 2025 05:55
@AnthonyLatsis
Copy link
Collaborator Author

After a closer look, the fossil record suggests that the majority of these tests are no more than using an alternative means to check fix-its. To make sure we retain test coverage, I’m going to find them a new home and switch them to the diagnostic verifier instead of deleting them.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis enabled auto-merge May 6, 2025 19:16
With `ARCMigrate` and `arcmt-test` removed from clang in
llvm/llvm-project#119269 and the new code
migration experience under way (see
swiftlang/swift-evolution#2673), these options
are no longer relevant nor known to be in use. They were introduced
long ago to support fix-it application in Xcode.

For now, turn them into a no-op and emit a obsoletion warning.
@AnthonyLatsis AnthonyLatsis force-pushed the arachnocampa-luminosa branch from bba2146 to b0b0cff Compare May 7, 2025 01:35
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis merged commit 88de665 into swiftlang:main May 7, 2025
3 checks passed
@AnthonyLatsis AnthonyLatsis deleted the arachnocampa-luminosa branch May 7, 2025 12:31
@AnthonyLatsis AnthonyLatsis restored the arachnocampa-luminosa branch May 7, 2025 14:12
@AnthonyLatsis AnthonyLatsis deleted the arachnocampa-luminosa branch May 7, 2025 14:24
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 7, 2025
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 7, 2025
...swiftlang#81280. The deleted test was
`test/FixCode/fixits-if-else.swift`. Resurrect it in a better place and
switch it to the diagnostic verifier, as it was intended to along with
other moved tests in that PR.
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 7, 2025
...swiftlang#81280. The deleted test was
`test/FixCode/fixits-if-else.swift`. Resurrect it in a better place and
switch it to the diagnostic verifier, as it was intended to along with
other moved tests in that PR.
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 7, 2025
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 7, 2025
…n..."

...swiftlang#81280. The deleted test was
`test/FixCode/fixits-if-else.swift`. Resurrect it in a better place and
switch it to the diagnostic verifier, as it was intended to along with
other moved tests in that PR.

(cherry picked from commit 8928b53)
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.

2 participants