From c95576ed7b8609b0baa12bd912d374fa56b496ef Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 10 May 2023 16:05:50 +0000 Subject: [PATCH] [tint] Fix syntax_tree build Missing utils:: namespace on TrimSuffix(). Change-Id: I184bee79dc2c807730c1be0a532b290441d5f4ae Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132323 Commit-Queue: Ben Clayton Kokoro: Ben Clayton Reviewed-by: Ryan Harrison Reviewed-by: James Price Auto-Submit: Ben Clayton --- src/tint/writer/syntax_tree/generator_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tint/writer/syntax_tree/generator_impl.cc b/src/tint/writer/syntax_tree/generator_impl.cc index 08ca8c524b..56f7f57edc 100644 --- a/src/tint/writer/syntax_tree/generator_impl.cc +++ b/src/tint/writer/syntax_tree/generator_impl.cc @@ -976,14 +976,14 @@ void GeneratorImpl::EmitForLoop(const ast::ForLoopStatement* stmt) { case 0: // No initializer break; case 1: // Single line initializer statement - line() << TrimSuffix(init_buf.lines[0].content, ";"); + line() << utils::TrimSuffix(init_buf.lines[0].content, ";"); break; default: // Block initializer statement for (size_t i = 1; i < init_buf.lines.size(); i++) { // Indent all by the first line init_buf.lines[i].indent += current_buffer_->current_indent; } - line() << TrimSuffix(init_buf.String(), "\n"); + line() << utils::TrimSuffix(init_buf.String(), "\n"); break; } } @@ -1004,14 +1004,14 @@ void GeneratorImpl::EmitForLoop(const ast::ForLoopStatement* stmt) { case 0: // No continuing break; case 1: // Single line continuing statement - line() << TrimSuffix(cont_buf.lines[0].content, ";"); + line() << utils::TrimSuffix(cont_buf.lines[0].content, ";"); break; default: // Block continuing statement for (size_t i = 1; i < cont_buf.lines.size(); i++) { // Indent all by the first line cont_buf.lines[i].indent += current_buffer_->current_indent; } - line() << TrimSuffix(cont_buf.String(), "\n"); + line() << utils::TrimSuffix(cont_buf.String(), "\n"); break; } }