summaryrefslogtreecommitdiffstats
path: root/tools/render-test/diagnostics.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /tools/render-test/diagnostics.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'tools/render-test/diagnostics.cpp')
-rw-r--r--tools/render-test/diagnostics.cpp13
1 files changed, 7 insertions, 6 deletions
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
};