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

Sort diagnostic output from the driver by default #1143

Merged
merged 4 commits into from
Mar 17, 2022
Merged

Sort diagnostic output from the driver by default #1143

merged 4 commits into from
Mar 17, 2022

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Mar 17, 2022

Adds a flag to keep streamed behavior.

Note the flag is kludged in... I would use llvm::cl flag support by default, but the subcommand logic is already avoiding LLVM's subcommand support -- I'm trying to figure out if that's deliberate and we'll build our own, or if it's incidental in which case I'd probably refactor the driver code for llvm::cl use separately.

@jonmeow jonmeow requested a review from a team as a code owner March 17, 2022 18:39
return lhs.location.column_number < rhs.location.column_number;
} else {
return false;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return std::tie(lhs.location.line_number, lhs.location.column_number) < std::tie(rhs.location.line_number, rhs.location.column_number);

Copy link
Contributor Author

@jonmeow jonmeow Mar 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done (thanks)

@jonmeow jonmeow merged commit 04ccff6 into carbon-language:trunk Mar 17, 2022
@jonmeow jonmeow deleted the err-buffer branch March 17, 2022 20:27
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