summaryrefslogtreecommitdiff
path: root/source/compiler-core/slang-artifact-diagnostic-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-artifact-diagnostic-util.cpp')
-rw-r--r--source/compiler-core/slang-artifact-diagnostic-util.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/compiler-core/slang-artifact-diagnostic-util.cpp b/source/compiler-core/slang-artifact-diagnostic-util.cpp
index bf1f0474b..98f8f2245 100644
--- a/source/compiler-core/slang-artifact-diagnostic-util.cpp
+++ b/source/compiler-core/slang-artifact-diagnostic-util.cpp
@@ -13,10 +13,14 @@ namespace Slang
{
switch (severity)
{
- default: return UnownedStringSlice::fromLiteral("Unknown");
- case Severity::Info: return UnownedStringSlice::fromLiteral("Info");
- case Severity::Warning: return UnownedStringSlice::fromLiteral("Warning");
- case Severity::Error: return UnownedStringSlice::fromLiteral("Error");
+ default:
+ return UnownedStringSlice::fromLiteral("Unknown");
+ case Severity::Info:
+ return UnownedStringSlice::fromLiteral("Info");
+ case Severity::Warning:
+ return UnownedStringSlice::fromLiteral("Warning");
+ case Severity::Error:
+ return UnownedStringSlice::fromLiteral("Error");
}
}