https://bugs.llvm.org/show_bug.cgi?id=48256
Bug ID: 48256
Summary: clang-format Allman brace style joins } with while
keyword in do/while loop
Product: clang
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: legal...@xmission.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Created attachment 24197
--> https://bugs.llvm.org/attachment.cgi?id=24197&action=edit
.clang-format
A do/while loop in Allman brace style should be written like this:
do
{
loopBody();
}
while (cond);
clang-format joins the brace and the while line, giving this:
} while (cond);
This isn't Allman brace style, which has every opening and closing brace
on it's own line at the same indent level as the enclosing scope of the
control statement.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs