https://bugs.llvm.org/show_bug.cgi?id=42164
Bug ID: 42164
Summary: Clang-format Add Option to Wrap before While
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: matthias.schae...@versasec.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Similar to BeforeCatch and BeforeElse, I would like to be able to control the
breaking before "while" in do-while loops.
I propose to add a BeforeWhile flag to the BraceWrapping setting, where true
means to break before the "while", and false means to remove the wrapping,
false should be the default because this seems to be how it is done currently.
When using BreakBeforeBraces: Stroustrup or Allman, there should always be a
break before "while".
--
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