mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
Add diag::Formatter::Style::print_newline_at_end
Automatically prints a newline at the end of the last diagnostic in a list. Defaults to true. Disabled for many tests that assume no newline at end of string. Change-Id: Id1c2f7771f03f22d926fafc2bebebcef056ac5e8 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37260 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
4a0b9f77ef
commit
d221738e20
@@ -59,8 +59,10 @@ class TransformTest : public testing::Test {
|
||||
auto result = manager.Run(&module);
|
||||
|
||||
if (result.diagnostics.contains_errors()) {
|
||||
diag::Formatter::Style style;
|
||||
style.print_newline_at_end = false;
|
||||
return "manager().Run() errored:\n" +
|
||||
diag::Formatter().format(result.diagnostics);
|
||||
diag::Formatter(style).format(result.diagnostics);
|
||||
}
|
||||
|
||||
// Release the source module to ensure there's no uncloned data in result
|
||||
|
||||
Reference in New Issue
Block a user