[llvm-bugs] [Bug 41441] New: incorrect and inconsistent formatting of a block in switch/case
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 9 08:05:24 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41441
Bug ID: 41441
Summary: incorrect and inconsistent formatting of a block in
switch/case
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: anatoly.borodin at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 21757
--> https://bugs.llvm.org/attachment.cgi?id=21757&action=edit
Style file
The case 3 in in.cpp is formatted inconsistently (should stay the same, like
blocks 2 and 4). The configuration file is attached.
in.cpp:
void test()
{
switch (x) {
case 1:
a = 1;
break;
case 2:
if (y) {
a = 2;
}
break;
case 3:
{
a = 3;
}
break;
case 4:
t = 10;
{
a = 4;
}
break;
}
}
out.cpp
void test()
{
switch (x) {
case 1:
a = 1;
break;
case 2:
if (y) {
a = 2;
}
break;
case 3: {
a = 3;
} break;
case 4:
t = 10;
{
a = 4;
}
break;
}
}
--
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/20190409/29a8eb4e/attachment.html>
More information about the llvm-bugs
mailing list