mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:51:03 +01:00
Support printing the diagnostic kind for verification. (#4425)
This is to help identify which diagnostics we're actually using. Note that driver/testdata still has tests which don't pass this flag, and so continue to test the kind-less (default) behavior.
This commit is contained in:
@@ -64,7 +64,8 @@ auto FormatSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
result.per_file_success.back().second = false;
|
||||
};
|
||||
|
||||
StreamDiagnosticConsumer consumer(driver_env.error_stream);
|
||||
StreamDiagnosticConsumer consumer(driver_env.error_stream,
|
||||
/*include_diagnostic_kind=*/false);
|
||||
for (auto& f : options_.input_filenames) {
|
||||
// Push a result, which we'll update on failure.
|
||||
result.per_file_success.push_back({f.str(), true});
|
||||
|
||||
Reference in New Issue
Block a user