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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: `AccessModifierOffset` not applied if /* */ comment is present before colon
        </td>
    </tr>

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

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

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

<pre>
    having `AccessModifierOffset: -2` resulted in this formatting in version 13:

```cpp
class foo {
  public /* i like comments */:
    int bar;
};
```

version 14 and HEAD (f106525de2) instead formats as:
```cpp
class foo {
    public /* i like comments */:
    int bar;
};
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1UU2PpCAU_DV4eekOoqh94OCkZ7KXyf4GPp7KDA1GsJP994PtuL2XTfayhsjjvVRRRalgfolJ3q0fgTS01xpjfA_GDhaXn8MQMZGqhxPLQ1gwri6hAeshTTbCEJabTGkD59Ydl2iDh7LKEEKvhB7_hu5Lz_Pe0U7GDR6AtC97C2BelbMaCHsjrAcLzn4i6HC7oU8xt_ttcjBD_qxPoORCqm8K0l6f9XHnn0J-K6xBegM_Xvtr5u2GkjaccYOMsEtmjQml-TYXQcannX8z8n-tFCjKhndd0_K2LIyozKW6yCLZ5FBkPX487dK34P6WaU7ThwRynp3dAh0Orbu2QyvkkOcc-1YqzLSbCxd8sS5OTCnNj7fZkG-jTdOqzhmYD87dj-00L-EDdcpHG-OKMRe8aWtaTILVA2doatqqoa3LrtW1kUNTca6Q04oXTip0URD-Qvi1sIJRxmjLGkYrxsuz5rTkQ32ppSo71WlSU7xJ687bxeewjMUiHhrUOsY8dDam-Bzm6OzoEQ9-uaYpLOIjoJuC_iweesVD7BeBW-4s">