Created
September 5, 2018 05:39
-
-
Save crabtw/e11fbed71a2af180d1a26e8f384c8922 to your computer and use it in GitHub Desktop.
clang-format patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp | |
index e5afa1264a..a5691e7c91 100644 | |
--- a/lib/Format/UnwrappedLineParser.cpp | |
+++ b/lib/Format/UnwrappedLineParser.cpp | |
@@ -1883,6 +1883,7 @@ void UnwrappedLineParser::parseLabel() { | |
--Line->Level; | |
if (CommentsBeforeNextToken.empty() && FormatTok->Tok.is(tok::l_brace)) { | |
CompoundStatementIndenter Indenter(this, Style, Line->Level); | |
+ ++Line->Level; | |
parseBlock(/*MustBeDeclaration=*/false); | |
if (FormatTok->Tok.is(tok::kw_break)) { | |
if (Style.BraceWrapping.AfterControlStatement) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment