Skip to content
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

Move diagnostic kind name to the end of the diagnostic. #4437

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

zygoloid
Copy link
Contributor

Also surround it in square brackets rather than parentheses. This matches the format used by Clang and GCC, and means diagnostics will still match the file:line:col: error: pattern used by some IDE tools.

Before:

fail_builtins.carbon:11:11: error(AliasRequiresNameRef): alias initializer must be a name reference

After:

fail_builtins.carbon:11:11: error: alias initializer must be a name reference [AliasRequiresNameRef]

Also tighten up test regex to only match on STDERR lines that list a file name.

Also surround it in square brackets rather than parentheses. This
matches the format used by Clang and GCC, and means diagnostics will
still match the naive `file:line:col: error: ` regex used by some IDE
tools.

Also tighten up regex to only match on STDERR lines that list a file
name.
@jonmeow jonmeow added this pull request to the merge queue Oct 23, 2024
@jonmeow jonmeow removed this pull request from the merge queue due to a manual request Oct 23, 2024
@jonmeow jonmeow added this pull request to the merge queue Oct 23, 2024
Merged via the queue into carbon-language:trunk with commit 2e63da1 Oct 23, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants