Skip to content

Add a new API DiagnosticsFormatter.formattedMessage(_:) for messages without source location info #3059

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
Apr 18, 2025

Conversation

DougGregor
Copy link
Member

Some tools want to use the diagnostics formatter to produce diagnostics that don't relate to source code, or for which the source code isn't available. This API allows them to do so while maintaining consistent presentation. The first client is the compiler itself, when it doesn't have a source location for a specific diagnostic.

…without source location info

Some tools want to use the diagnostics formatter to produce diagnostics
that don't relate to source code, or for which the source code isn't
available. This API allows them to do so while maintaining consistent
presentation. The first client is the compiler itself, when it doesn't
have a source location for a specific diagnostic.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@DougGregor DougGregor enabled auto-merge April 17, 2025 23:04
@DougGregor DougGregor merged commit e4bdcbf into swiftlang:main Apr 18, 2025
26 checks passed
@DougGregor DougGregor deleted the formatted-message branch April 18, 2025 16:59
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