<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64895>64895</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Weird break of constructor initializer list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
HazardyKnusperkeks
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
HazardyKnusperkeks
</td>
</tr>
</table>
<pre>
``` c++
Class::Class(int some, int arguments, int loooooooooooooonoooooog, int mooooooooooooore) noexcept : Super{some, arguments}, Member{5}, Member2{2} { }
```
formatted results in
```c++
Class::Class(int some, int arguments, int loooooooooooooonoooooog,
int mooooooooooooore) noexcept
: Super{some, arguments}, Member{5}, Member2{2} {}
```
But with `BreakConstructorInitializers: AfterColon` it wraps after the first initializer:
```c++
Class::Class(int some, int arguments, int loooooooooooooonoooooog,
int mooooooooooooore) noexcept :
Super{some, arguments},
Member{5}, Member2{2} {}
```
For this the happen the parameters have to be longer than the column limit and the second line with the initializer has to fit.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMlM1u2zgQgJ-GugxiSFSsn4MOlg1jF4s99dDzSBpJbChSIEdJk6cvKDlx3KLIoS1QgjCH80fPxxHRezUYokrsayHlP_iCrnv-zyx-JvdAD15IKfanCBcerat-tEeN7Z4rkcXbhFbIOsz4JOLDUaP3Ij2I9CLKQhkGbycS8ghBRjcsExn2rwptb4bZluHVPN1YHQlZgrH0taWZQaQH-LTM5ERevx5yPSA_hf3_NDWrw_5GIUVeS5GfQOQ1BMtawFtd27a3bkJm6sCRXzR7UOY7xz9Y_5YT3o-PiFxDfhOan5HZfuuF4UnxCCKLa0f4cLTGs1tatu5fo1ihVi_kAhI49EzuaLU1oW0Uw5PD2QMGNfBI0CvnGdQ1LID8m2HD2x8M3h_Avjr-MvWzDcCUX6mNOM9kVnFGhxMxOQ8jPhKwhYZAWzOshHHzaq1eJgNaTYoBTbcqPbXWdKCVoe1Cg_LdVcCIPuTrFe-irkq7Mi0xoirJSpnHSVFk0Vg1KDNMuk62spRJj30sm7LFhMoubcscI1XJWKZxIWUS74s42zWJzLqkaDEIRV-I-5gmVHqn9eO0s26IlPcLVdl9Ue4jjQ1pf3m5Wo1muNs-0Mub5aoQdtcsgxf3sVae_TURK9brq3cTuD_BZ1KugyZ0L9ge2msH3wAI6aLF6Wpknte2k2chz4PicWl2rZ2EPIfDLsvd7OwXalnI81qCF_K8VvEtAAD__3e3vAs">