summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-json-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 /source/compiler-core/slang-json-diagnostics.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'source/compiler-core/slang-json-diagnostics.cpp')
-rw-r--r--source/compiler-core/slang-json-diagnostics.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/compiler-core/slang-json-diagnostics.cpp b/source/compiler-core/slang-json-diagnostics.cpp
index 1d35e8faf..1dc30572e 100644
--- a/source/compiler-core/slang-json-diagnostics.cpp
+++ b/source/compiler-core/slang-json-diagnostics.cpp
@@ -1,18 +1,19 @@
// slang-json-diagnostics.cpp
#include "slang-json-diagnostics.h"
-namespace Slang {
+namespace Slang
+{
namespace JSONDiagnostics
{
-#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 "slang-json-diagnostic-defs.h"
#undef DIAGNOSTIC
-}
+} // namespace JSONDiagnostics
-static const DiagnosticInfo* const kJSONDiagnostics[] =
-{
-#define DIAGNOSTIC(id, severity, name, messageFormat) &JSONDiagnostics::name,
+static const DiagnosticInfo* const kJSONDiagnostics[] = {
+#define DIAGNOSTIC(id, severity, name, messageFormat) &JSONDiagnostics::name,
#include "slang-json-diagnostic-defs.h"
#undef DIAGNOSTIC
};