Before:
void f() {
label:
signals
.baz();
}
After:
void f() {
label:
signals.baz();
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276854
91177308-0d34-0410-b5e6-
96231b3b80d8
if (FormatTok->is(tok::colon)) {
nextToken();
addUnwrappedLine();
+ return;
}
- return;
}
// In all other cases, parse the declaration.
break;
verifyFormat("{\n"
" signals.set(); // This needs indentation.\n"
"}");
+ verifyFormat("void f() {\n"
+ "label:\n"
+ " signals.baz();\n"
+ "}");
}
TEST_F(FormatTest, SeparatesLogicalBlocks) {