[llvm-bugs] [Bug 38854] New: Wrapped block after case label should not be merged into a single line
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 6 00:04:51 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38854
Bug ID: 38854
Summary: Wrapped block after case label should not be merged
into a single line
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: owenpiano at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
With configuration file:
BasedOnStyle: LLVM
IndentCaseLabels: true
AllowShortBlocksOnASingleLine: false
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180906/0f128869/attachment.html>
More information about the llvm-bugs
mailing list