[llvm-bugs] [Bug 44220] New: clang-format does not transfer brace to the new line for union, if flag Allman is set
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 4 09:44:24 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44220
Bug ID: 44220
Summary: clang-format does not transfer brace to the new line
for union, if flag Allman is set
Product: clang
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: alexeypavlov.m at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Hi. If I set flag BreakBeforeBraces: Allman, clang-format does not transfer
brace to the new line for union. Also if I use BasedOnStyle: Mozilla without
anything else, it works correctly for union.
clang-format version 9.0.0 (tags/RELEASE_900/final)
$ echo "union U { int a; int b; }" | clang-format -style="{BreakBeforeBraces:
Allman}"
union U {
int a;
int b;
}
$ echo "union U { int a; int b; }" | clang-format -style="{BasedOnStyle:
Mozilla}"
union U
{
int a;
int b;
}
seems the same as:
https://bugs.llvm.org/show_bug.cgi?id=42155
--
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/20191204/c0c5f782/attachment.html>
More information about the llvm-bugs
mailing list