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

    <tr>
        <th>Summary</th>
        <td>
            clang-format inserts wrapped opening braces before trailing comments
        </td>
    </tr>

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

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

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

<pre>
    Version: 15 and main
```
$ cat test.cpp
if (a) //
    b = 1;
$ clang-format -style="{BasedOnStyle: Microsoft, InsertBraces: true}" test.cpp
if (a)
{ //
    b = 1;
}
```
Expected:
```
if (a) //
{
    b = 1;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUsGO2yAQ_Rp8QbEwNnY4cIibrtRD1UOl3gEPDhUBC3C3-_fFdqpupV1VRUho3gzz3jxQYXoR3yAmGzxqL7hhWPoJ36X1iFwRuaCePPYR0g5rmXGGlGu9LAdqDUb0LBHl5Xza9g7jshRG7RU3qB1fNXDSzycT4r10OqX84qAUIUrRMI4ywfTFfz3AC_5sdQwpmIzoB_zJJ4h5jFJD2pI5roCG7ea7gh6sw_hvZaXRWyN__LmAzjAVwjfz7wxfKP-HqwLR9H0zMEZ7Xk2inXjLZZVtdiD-MszuJiT8HOWywITDAt76GavdFqyg1EGxRlq3wTrc7-BzqtboxC3nZXPuEDrbfFtVXSpK4NyP38dpieF7mbmENqW1eE2f2NA1vLqJzijCKTGDMYYpQ86010wTAkwNlE-8clKBSwKxsTzLa-Hb-7JrZQUllJZ7nPRdQ3jdKdUS2hgC3VmfJ4k6AuX_uXqTUoc4V1HsqtQ6p5J0NuX0JylTsrMHeDCGZ_BaPrjkmm8higOr9lnEPsgvYcnZUA">