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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] inheritance list is not aligned, comment moved to other line
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    # to reproduce

`.clang-format`:
```yaml
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ConstructorInitializerIndentWidth: '2'
```

`main.cpp`:
```cpp
class A{};
class B{};

class C : //
public A,
public B{

        int c;
        int c1;

        C() : //
c(10),c1(20){}

};
```

run command:
```console
clang-format main.cpp
```

# expected result

```cpp
class A {};
class B {};

class C : //
  public A, public B{

  int c;
  int c1;

  C() : //
    c(10), c1(20) {}
};
```

# actual result

```cpp
class A {};
class B {};

class C : //
public A,
public B{

  int c;
  int c1;

  C() :
    //
    c(10), c1(20) {}
};
```

- inheritance list is not indented
- comment in `C` constructor initializer list is moved to the next line. Comments should not be moved to other lines.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VMGOmzAQ_Rq4jBaBHZJw4LBhVSlS7z0b24Bbx45ss9rt13eAbEIou1tVahGE-M14_GbeMLUVr2VEKAQLTp6dFT2XUfoUpY-X322acM1M-9BYd2IB1xG92ab7lZ30BB2cZD8qa3xwPQ_WHY0Kimn1UzqP--CxCdJVVlsz8z-aTjoVmOHyq_JhzW895NEIacI3JUI3bIrIjuCzILfI5sSUSfj5vJrIgI8Ipuw9PEa7Q7R7iuhhjh4W6NxWwUTky3CP-LmvteIYilR3wBhlTi0tlAnAZ2EnIFschHgVkX1Eit_O4ohnKVrwMNxH9mRcTHTnIebs1-rkegPcnk7MiJUioRZWy2va196Aa20_UAB7Tb6cJQ9SYMf5XoeFQOtKwLoUS_hjLQBmasA7QgDc63BZL2UAeE8FwGuuBNykgDstPlNhqBXjoWf6v1fqT7v2b4p1q9I_qdoDUrjOE9A4UEB5MBZf47iQ4s1v6HAEEAeMUeED_DZnEL4OmmuYk33GvsVhGToJRr4EtBiZQDWF8uA722sxHlfLm7tFfzf6-iQWJRUFLVgcVNCyjPLD3YTNn97NANm0BhMYynMhv3JE3DtddiGch5E71bhVoevrBDfhQuvnt9cDjvzv-DHiUnnfS49_8pzSLO5KJgtOCWn2DaeU5nS_5XUjciK2rNjV6SbWrJbaD_yRc6xKkhKS5uk-y9Iio0nWiK2QeBXbzaYummiTSpwQOhkOTqxrY1eOHOq-9WgcEvU3IzbmkKx8i8_60FlXqpa1yscj23Kk-gvalt0p">