From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- source/slang/slang-emit-source-writer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-emit-source-writer.cpp') diff --git a/source/slang/slang-emit-source-writer.cpp b/source/slang/slang-emit-source-writer.cpp index 016da0417..c4cc3d406 100644 --- a/source/slang/slang-emit-source-writer.cpp +++ b/source/slang/slang-emit-source-writer.cpp @@ -420,10 +420,12 @@ void SourceWriter::_emitLineDirectiveIfNeeded(const HumaneSourceLoc& sourceLocat switch (mode) { case LineDirectiveMode::SourceMap: - case LineDirectiveMode::None: return; + case LineDirectiveMode::None: + return; case LineDirectiveMode::Default: - default: break; + default: + break; } // Ignore invalid source locations @@ -533,7 +535,9 @@ void SourceWriter::_emitLineDirective(const HumaneSourceLoc& sourceLocation) // // TODO: should probably canonicalize paths to not use backslash // somewhere else in the compilation pipeline... - case '\\': emitRawText("/"); break; + case '\\': + emitRawText("/"); + break; } } emitRawText("\""); -- cgit v1.2.3