clang-format adds new line between semicolon and body-less loop #61708
Closed
Description
I'm gonna borrow example from this SO question (and here's a similar one):
I want to configure clang-format that it leaves single-line while-statement without adding a line break for the trailing semicolon.
For example, clang-format should just leave a "one-liner" as it is:while (checkWaitCondition() != true);But unfortunately it adds by default a line break (plus an indentation):
while (checkWaitCondition() != true) ;
Activity