https://bugs.llvm.org/show_bug.cgi?id=41752
Bug ID: 41752
Summary: AllowShortLoopsOnASingleLine does not work on trivial
loops
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: sho...@shodan.ru
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
.clang-format contents:
Language: Cpp
BasedOnStyle: LLVM
BreakBeforeBraces: Allman
AllowShortLoopsOnASingleLine: true
Input file:
void Foo()
{
while (*p++);
}
Expected output: same as input.
Actual output: semicolon gets detached.
void Foo()
{
while (*p++)
;
}
--
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