<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63073>63073</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Formatter incorrectly formats braced list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ilya-biryukov
</td>
</tr>
</table>
<pre>
Input:
```cpp
// clang-format --style=Google
int foo() {
return {
identifierLong,
identifierLong2,
identifierLongLongLongLong1,
identifierLong3,
/*is_active=*/true,
/*is_twin=*/true};
}
```
Current output:
```cpp
int foo() {
return {identifierLong, identifierLong2, identifierLongLongLongLong1,
identifierLong3,
/*is_active=*/true,
/*is_twin=*/true};
}
```
Note how `identifierLong2` gets some space added before it for no reason.
Expected output: same as input, i.e. one item per line.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk99unDwQxZ_G3IwWGZs_ywUXSfbjU6Wqr1AZGFi3xkb2kHTfvjKk2WzaRpFqgTCe4yOfnzwqBD1ZxIYV96w4JWqls_ONNhd16LS_rN_dY9K54dJ8sstKTN4xfmL8jpV8f_pleV4RLRMt9EbZ6TA6PyuCwyHQxSCTp_-dmwzCLtWWYHSOiSMTNbDqfl8G8Eirt69W9ICW9KjRf3Z2YuLhlzKO26K4Vm8Lr9_sXQt5rW5p7nT4qnrSjzEBEzEi-RXfeLxI6UnbW2F1YvI5Spzfktt_H1bv0RK4ld7n-wFov9H6A6KPwfkrl5fxMUD_xuaLI4SzewJW8rdJSg4TUoDgZoSwqB5BDQMO0OHoPIKOtDxYBx5VcDbdLf_7sWBPOFx5Q1AzggqgtwseCaWYgrPRA2dY0IPRFtNkaORQy1ol2GTlsah4KbNjcm7itBqOxVgUtVSq4HWd1yNXGa-zqsyPiW4EF5KXXGRZXmTHtKryqiw6idWIWVHlLOc4K21SYx7n1Pkp0SGs2JSSVzIxqkMTtg4V4nV_MSFiz_ombjt06xRYzo0OFK5GpMlg0256Qg_a9s577MlcYHcJ0HnV4wBxZ7J605yJlhCv4tbSk6bz2qW9m5loo-_z57B49w17YqLdThuYaLcD_wwAAP__URxNpA">