<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61708>61708</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format adds new line between semicolon and body-less loop
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Jorengarenar
</td>
</tr>
</table>
<pre>
I'm gonna borrow example from [this SO question](https://stackoverflow.com/q/74190943/10247460) (and [here's a similar one](https://stackoverflow.com/q/43198429/10247460)):
> 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:
> ```c
> while (checkWaitCondition() != true);
> ```
> But unfortunately it adds by default a line break (plus an indentation):
> ```c
> while (checkWaitCondition() != true)
> ;
> ```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysk0-PpDYQxT-NuZS6ZWygmwOHne1F2lxyyCHnAhfgHWP32uXpzLePoGfSaimKFGklCyT_qferZz9Myc6eqBP1i6gvBWZeQux-C5H8jJE8xmII5r37LtRphTl4jzCEGMMN6C9cr45gimEFUb_wYhP88Tv8zJTYBi_qi1DnhfmahP4iVC9UnxjH1_BGcXLhdhzDKlT_U6j-VJWtbCstVF9KVZ2qRgrVglBn9GYrvlAkoU4JEJJdrcMIwdP_kah02Z4r1T5LbEN_EfIi5OdXf4PvcEPPwAHG4Cc750gwOvTzYQpxRQZekMEyOMI3SpCsnx0dnPUEt8U6OiRGppU8w83yEjIDGmP9DAj7riESvsIUIvBCwBGt21YTrXYMLvjjA6YP8dNrob4-c6QlZGfgR04fLIAglAr-DhOFUoBpI7Xp0af-BqKR9zE-5nbyzfNxofH1T7T8NXhj97tU5_t9lEJfgGOm3biXfyn4mHrJDNlPIXL2yOTeNw40JsHwDoYmzI6f_RDqfHU5AXqw3pBnvIu3v579n5MA_9VHYTptWt1iQV3ZnNqzLpuyLpZOmrFsG32StTo341hq2aBsT0OlTV0bUxa2U1JpqVVTlrXW9bFsm6kadYuTVO1YalFJWtG6o3Nv6zHEubApZeqa8iTPhcOBXNpzqZSnG-yLQqktprHbzhyGPCdRSWcTp0cVtuyoe3omu-lbkbvXxDci_3hssIVsi_nBUUrgQrgWObruOViz5SUPH4na1D5-h2sMP2hkofqdMQnV7z38HQAA___LhlgU">