From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- tools/render-test/diagnostics.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'tools/render-test/diagnostics.cpp') diff --git a/tools/render-test/diagnostics.cpp b/tools/render-test/diagnostics.cpp index 2bc337256..929642976 100644 --- a/tools/render-test/diagnostics.cpp +++ b/tools/render-test/diagnostics.cpp @@ -1,18 +1,19 @@ // diagnostics.cpp #include "diagnostics.h" -namespace Slang { +namespace Slang +{ namespace RenderTestDiagnostics { -#define DIAGNOSTIC(id, severity, name, messageFormat) const DiagnosticInfo name = { id, Severity::severity, #name, messageFormat }; +#define DIAGNOSTIC(id, severity, name, messageFormat) \ + const DiagnosticInfo name = {id, Severity::severity, #name, messageFormat}; #include "diagnostic-defs.h" #undef DIAGNOSTIC -} +} // namespace RenderTestDiagnostics -static const DiagnosticInfo* const kDiagnostics[] = -{ -#define DIAGNOSTIC(id, severity, name, messageFormat) &RenderTestDiagnostics::name, +static const DiagnosticInfo* const kDiagnostics[] = { +#define DIAGNOSTIC(id, severity, name, messageFormat) &RenderTestDiagnostics::name, #include "diagnostic-defs.h" #undef DIAGNOSTIC }; -- cgit v1.2.3