<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/81822>81822</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format doesn't touch constructor format with braced initialization of base class and following member
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jacobsa
      </td>
    </tr>
</table>

<pre>
    If I have this input, with a badly formatted constructor for `Bar`:

```c++
int some_int_with_a_very_long_name;
int some_other_int_with_a_very_long_name;

struct Foo {
  explicit Foo(int, int);
};

struct Bar : Foo {
  Bar() : Foo{
 some_int_with_a_very_long_name,
 some_other_int_with_a_very_long_name,
              }, some_member(0) {}

  int some_member;
};
```

Then clang-format won't change it; it leaves it as is, no matter how it's formatted. It should be formatting it like this:

```c++
  Bar()
      : Foo{
 some_int_with_a_very_long_name,
 some_other_int_with_a_very_long_name,
        },
        some_member(0) {}
};
```

This would be consistent with what clang-format already does correctly do if the initializer for `some_member` isn't there:

```c++
  Bar()
      : Foo{
 some_int_with_a_very_long_name,
 some_other_int_with_a_very_long_name,
        } {}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVEGP8jgM_TXpxRoUXGjh0MMwI6S57x25qWkzmyYoSWHZX79KCwOMRmJOK30oSsB2zHt-digE3VrmSiw3Yvme0RA756tPUq4OlNWuOVcfe_iAjo4MsdMBtD0MUeAbnHTsgKCmxpxh73xPMXIDytkQ_aCi88kKopAb8qKQIn8V8l3I617IaSmBm7RGq7YRgut5p23cpX_Y0e7I_rwzzrY7Sz2L_Huoix37X1yY9gkcbJ0DUV48APzPwWilR7vAlbYjxfFY3xKU7z8n25AHkb9-T5p440rg-uq8-Z5wxLf7uGcEv6IfPgktvk0Zeu5rTmDkiKbcJOcdD4Cval5Cf-R8lez-6l8dW1CGbPsyNQGcnBVYRlAd2ZZBR5FvQEcwTEcO6RsF0CGBsw7GtvHQuVOKxDLcemkGHxFC5wbTQM1Xu7btmE3_PXXkr_rqToz7Wv2_ukyKPNqeyfO8_DrA6VqiNHw6RLZxGs9TR_FRHDKeqTlD4ziAct6ziib9BL2H2DFoq6Mmo__lr_m9x1hI0GHSN7HnP6r6j6W9Qs2aKm_W-ZoyrualLNdlXq7mWVdJLIpyT2tq5L7OFWKTI-UrarBeqCWpTFcocSFxvpRLuV7MZ2XJuCpKWTTFHNUSxUJyT9rMjDn2M-fbTIcwcLWarxAzQzWbML69iPcqCcT0GvsqXXuphzaIhTQ6xHBLFHU0XD1omzS9SOMG1X1_isfZTF1Re1Lc3JSmqJ0Ft4eaAqd2CQHINrB3xrhTmrdJ_GzwpupiPIwzh1uB21bHbqhnyvUCtwnb5Xg5ePfJKgrcjoyDwO1I-r8AAAD__6ie-oo">