mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -219,7 +219,7 @@ class LexerBenchHelper {
|
||||
auto DiagnoseErrors() -> std::string {
|
||||
std::string result;
|
||||
llvm::raw_string_ostream out(result);
|
||||
StreamDiagnosticConsumer consumer(out);
|
||||
StreamDiagnosticConsumer consumer(out, /*include_diagnostic_kind=*/false);
|
||||
auto buffer = Lex::Lex(value_stores_, source_, consumer);
|
||||
consumer.Flush();
|
||||
CARBON_CHECK(buffer.has_errors(),
|
||||
|
||||
Reference in New Issue
Block a user