Skip to content

Instantly share code, notes, and snippets.

@crabtw
Created September 5, 2018 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crabtw/e11fbed71a2af180d1a26e8f384c8922 to your computer and use it in GitHub Desktop.
Save crabtw/e11fbed71a2af180d1a26e8f384c8922 to your computer and use it in GitHub Desktop.
clang-format patch
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