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

    <tr>
        <th>Summary</th>
        <td>
            clang-format RemoveBracesLLVM joins line comment and right brace
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            invalid-code-generation
      </td>
    </tr>

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

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

<pre>
    clang-format versions: 14 and main
```
$ cat test.cpp
if (foo) {
  if (bar) {
    baz = 1; //
  } }
$ clang-format -style="{RemoveBracesLLVM: true}" test.cpp
if (foo) {
  if (bar)
    baz = 1; // }
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUrFu5CAQ_RrcIFsY2-t1QZG91VW5JkX6MR5sIgwrwHvKff3BeqNsUlxxEgjmzQzz5jGjm96FNGDnUjm_QqRX9EE7G0jzROuWgp3oCtoSdibsiRzYfe0mb6lMORFDrOTlsqNaUcKPyjnCB0r6045SuuMj-G84pSP8oaQ505o0pxTzM6-7k_TnvB_qPZItQ3w3mFIJ5-nFF1zdFU8eJIbn59dfuYfoN8wPcP4fNP9J8YHXhyzFJJppaAYooo4Gvyr7nR19c9oGarRFKt26oo03ub2el0jHHFds3oglxkv-jr3qrOOyjVVKSIYx14-jvHj3hjImU4ewYUiX7tAej8UiGD-2qmfDpGrVADCsO9XJrj_UbdMMCIWBEU0QpDslnR5JZ135j9Qw1_YKRk-ldBOWM1r0ENOc5IDuXGjBGeesr9Nu-66u-iTC1OGgWj6Awpq0DNMcmSpzrZyfCy9utMdtDslpdIjh0wkh6Nki3im532gl3GvBFhfnxY4Vt2bFrdO_u-7Tnw">