<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73316>73316</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: align combined declarations/initializations
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
heeplr
</td>
</tr>
</table>
<pre>
I'm not sure if this is a feature request, a bug or if I just missed something, but misaligned combined declarations/initializations like this:
```
int a=1,
b=2,
c=3;
```
will always be put on the same line:
```
int a=1, b=2, c=3;
```
That's a problem where long lists were broken for readability. Is there a way to have them properly aligned? Like:
```
int a=1,
b=2,
c=3;
```
If not, it'd be a nice feature.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8GO2yAQ_Rp8GW2EIXaSgw-7G0WK1GN_YDBje3axcQFvlH59hZN2u1UPsSxsBniP93hgjNxPRI2oXkR1LHBJgw_NQDS7UBhvr81ZqN0Ik08Ql0DAHaSBI3AEhI4w5WKgHwvFJNQrIJilBx_yxDO8LTHByDGShehHSgNPfZ5mlrWOLtNbaP1oOP9Yah0GTOynKNSJJ06Mjn_eKuD4nVZ-oZ-FPAr5LGp5f9cuTwlQ6GMp1OutAn89Ruij-jLSCn3UQr_8F-zWXtg5QHfBawRDMC8J_ARpIIg4Ejie6JHd_CF_hPP7gEmoXfZ4Dt44GuEyUCBwfurBcUwRLrlvgn-nCTofIBBaNOw4XTdwjnmHgQDhgldIHgb8yNbRmBFnCu4Kd_eFPsE3fn9Ixadz_3j5gKhbe-5ymLIPnCXa7CnCxC39jtOmsI22B33AgppyJ-Ve6aqWxdB0aGsslZa67qytWkW1QbutVHuwVSv3BTdKKl2WalvK6qDkZo_qsK-lrSqzLbUmsZU0IruNcx_jxoe-4BgXanZal3Xh0JCL62VQqnU49U-dD2M-C5WvR2jysiez9FFs5XoMn0CJk6Pmyyr9fPP40XwXS3DNkNK85ludhDr1nIbFbFo_CnXKXPfP0xz8G7Upg2QFGW0V8SsAAP__YWAmGQ">