<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78241>78241</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[feature-request] [clang-format] Align Cpp11 braced initilizer list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MarcelRobitaille
</td>
</tr>
</table>
<pre>
clang-format already has `AlignConsecutiveAssignments`. It would be great to have something like `AlignConsecutiveCpp11BracedList`.
`AlignConsecutiveAssignments`:
```c++
int a = 1;
int somelongname = 2;
double c = 3;
```
What I want:
```c++
int a {1};
int somelongname {2};
double c {3};
```
Current behaviour (if you also set `SpaceBeforeCpp11BracedList`):
```c++
int a {1};
int somelongname {2};
double c {3};
```
I seem to not be the only one who wants this: https://stackoverflow.com/questions/77240277/is-it-possible-to-align-initializer-lists-with-clang-format
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVE9v2z4M_TTyhXBgy4n_HHyIGwQo8PtdtsPOtM3YWmUpk6gE2acfrBVtihVbN0OwDZF6fHwkhd6ryRC1YteJ3SHBwLN17f_oBtKfbK8YldaU9Ha8tYNGM6Un6xZkQO0IxxvM6EGU2V6ryTxY42kIrC60j8ALGfaizDbwyHC1QY_QE0yOkIEtzHgh8HYhnpWZQKsneg_r4XzO887hQON_yvOKJ7KDyPbP7z9FF8Wr5881CNmtK-4qw4Bw94jiALko7swrR23NZHChaJYv5tGGXhMMb04XL-aXkPeMv8zI8AhXNPzX3KouF9XhN-yqTt47_Mqv6op7h3cZPgTnyDD0NONF2eBAyFqd4GYDoPYWPPFaqs9nHKijk3XvVEnI5kPp_XtOH8rlETzRsvabsWtGwDOBNfoG1hBcZxsL4YFn5UWxh5n5vP4IeRTy6BmHJ3shd9L2uhnsIuTxWyDPyhov5LGq5DaTVSXkUflUcXq23qteU8o2xbUvU2UUK9TqO7lUK88-vSqe0_txSsa2GJuiwYTavMp2RVPWdZXM7bitepJNUezKuqlKGsumqcdmRIlFfsq3iWplJrdZnpdZI3NZbYY6x_pUD2WdN9QPtdhmtKDSG60vy8a6KVHeB2qrWm7zRGNP2sfxl_KekZByvRBcux5L-zB5sc0i-1cgVqzj1XEi5OAodRSlEbsDiF33Bm53gDilEPsE-tgoEKWJysCKnQSn27f6T4rn0D8Lv0Z-_qRnZ7_SwFF3HyjWYk3pRwAAAP__FqhzEA">