Skip to content

[Diagnostics] Support "swift" style diagnostics at EOF #77755

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 1 commit into from
Nov 21, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Nov 21, 2024

Adjust the valid position checking and special handle EOF position. If the requested location is at EOF, use the last token, but still emit the diagnostics at the specificied location.

rdar://129883075 rdar://138426038

@rintaro
Copy link
Member Author

rintaro commented Nov 21, 2024

@swift-ci Please smoke test

@rintaro rintaro requested a review from DougGregor November 21, 2024 00:52
@slavapestov
Copy link
Contributor

Thank you! I believe this also fixes rdar://129883075

@DougGregor
Copy link
Member

Thank you!

Adjust the valid position checking and special handle EOF position.
If the requested location is at EOF, use the last token, but still
emit the diagnostics at the specificied location.

rdar://138426038
@rintaro rintaro force-pushed the diags-swiftstyle-eof branch from 044d026 to 40c8d81 Compare November 21, 2024 14:27
@rintaro
Copy link
Member Author

rintaro commented Nov 21, 2024

@swift-ci Please smoke test

@rintaro rintaro enabled auto-merge November 21, 2024 14:28
@rintaro rintaro merged commit 015830e into swiftlang:main Nov 21, 2024
3 checks passed
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.

5 participants