diff --git a/src/ast/type/storage_texture_type.cc b/src/ast/type/storage_texture_type.cc index fe5f293d8d..a61fc01e22 100644 --- a/src/ast/type/storage_texture_type.cc +++ b/src/ast/type/storage_texture_type.cc @@ -31,7 +31,7 @@ bool IsValidStorageDimension(TextureDimension dim) { } #endif // NDEBUG - + } // namespace std::ostream& operator<<(std::ostream& out, StorageAccess access) { diff --git a/src/ast/type/type.cc b/src/ast/type/type.cc index f9b9e03baa..a16301480f 100644 --- a/src/ast/type/type.cc +++ b/src/ast/type/type.cc @@ -48,7 +48,7 @@ Type* Type::UnwrapPtrIfNeeded() { Type* Type::UnwrapAliasesIfNeeded() { auto* where = this; while (where->IsAlias()) { - where = where->AsAlias()->type(); + where = where->AsAlias()->type(); } return where; } diff --git a/src/reader/spirv/function_memory_test.cc b/src/reader/spirv/function_memory_test.cc index 662e9cb109..f7c3f4e4cf 100644 --- a/src/reader/spirv/function_memory_test.cc +++ b/src/reader/spirv/function_memory_test.cc @@ -752,8 +752,7 @@ RTArr -> __array__u32_stride_4 S -> __struct_S)")); } -TEST_F(SpvParserTest, - RemapStorageBuffer_ThroughAccessChain_NonCascaded) { +TEST_F(SpvParserTest, RemapStorageBuffer_ThroughAccessChain_NonCascaded) { const auto assembly = OldStorageBufferPreamble() + R"( %100 = OpFunction %void None %voidfn %entry = OpLabel @@ -825,8 +824,7 @@ TEST_F(SpvParserTest, RemapStorageBuffer_ThroughAccessChain_Cascaded) { << p->error(); } -TEST_F(SpvParserTest, - RemapStorageBuffer_ThroughCopyObject_WithoutHoisting) { +TEST_F(SpvParserTest, RemapStorageBuffer_ThroughCopyObject_WithoutHoisting) { // Generates a const declaration directly. // We have to do a bunch of storage class tracking for locally // defined values in order to get the right pointer-to-storage-buffer diff --git a/src/reader/spirv/function_misc_test.cc b/src/reader/spirv/function_misc_test.cc index 3cb8ddfcd0..e606da7e10 100644 --- a/src/reader/spirv/function_misc_test.cc +++ b/src/reader/spirv/function_misc_test.cc @@ -292,8 +292,7 @@ TEST_F(SpvParserTestMiscInstruction, OpNop) { FunctionEmitter fe(p, *spirv_function(100)); EXPECT_TRUE(fe.EmitBody()) << p->error(); EXPECT_THAT(ToString(fe.ast_body()), Eq(R"(Return{} -)")) - << ToString(fe.ast_body()); +)")) << ToString(fe.ast_body()); } // TODO(dneto): OpSizeof : requires Kernel (OpenCL) diff --git a/src/writer/wgsl/generator_impl.cc b/src/writer/wgsl/generator_impl.cc index dac8d3cda8..2c3dabec56 100644 --- a/src/writer/wgsl/generator_impl.cc +++ b/src/writer/wgsl/generator_impl.cc @@ -730,7 +730,6 @@ bool GeneratorImpl::EmitCase(ast::CaseStatement* stmt) { return false; } } - } out_ << ": ";