<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55858>55858</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format force multi-line declarations
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lasergnu
</td>
</tr>
</table>
<pre>
When suitable, our project uses the following style. The type is written once and then each variable on its own line.
```
int
inlen = Size(in),
outlen = Size(out),
samples = Scan(out),
ingap = Gap(in),
outgap = Gap(out),
gap = std::min(ingap, outgap);
```
Would be nice if clang-format could support something similar.
Related enhancement request: https://github.com/llvm/llvm-project/issues/55792
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUsFu2zAM_Rr7QiRwrDiNDz60C7b7NqBnWaZtDrLkSVSD7OtHOymaYe2pAiFR4uPjk6jWd5fmeUQHMRHr1mJWfgGfAszB_0LDkCJG4BGh99b6M7kBIl8sbgF-yilfZgSKcA7ELDTeGQTtuiXFAWozwosOtDBLDIgj-LMDSw63WXHKisfbfChutm7J8dWBZZCzQgaQqRP8oD-i8UguK2vReofyiVfYHUqO_oNFPc1W7rTCjHYfwOSier7V_KbnD0uuqDfQe1RXoisqcpepR7FpoTuuVa5PzqtXZ-rp3Re5zs8-2Q5aBEfyztSDsdoNm96HSTOYNRrTPPvAEP2EPK4No4msDtKye67vaDVjB-hGLV2b0DEE_J0wsuiDkXmOi9byq9hAPKZ2a_wkG2tfXpfN7Z_IlmKUXHGq6qEu7yvlXaO6WtU6Z5IeNf-IlkWuMiXLtFm-BXQo8aCZvIt5Crb5jJJjdczHRh3NTve96g97tSsQqwdTa6PMUbVtV-6K3OoWbWyy6imrTjk1ZVGWxaFQu73aVw9bVH23O6gC-9Zog3W2L3DSZLdL4a0PQx6aVUObhihBS5HjW1DHSINDfOXXiUcvGTpiGFzKV73NKvYvf5oZEA">