https://bugs.llvm.org/show_bug.cgi?id=38926
Bug ID: 38926
Summary: Short case label followed by a block is not formatted
correctly
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: owenpi...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
With configuration file:
BasedOnStyle: LLVM
AllowShortCaseLabelsOnASingleLine: true
IndentCaseLabels: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterControlStatement: true
The following code:
switch (n) {
case 0: {
return false;
}
default: {
return true;
}
}
is incorrectly formatted to:
switch (n)
{
case 0: { return false;
}
default: { return true;
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs