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

    <tr>
        <th>Summary</th>
        <td>
            clang-format crashes on `RemoveSemicolon: true`
        </td>
    </tr>

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

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

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

<pre>
    Version: main
```
$ cat test.cpp
class C final [[deprecated(l]] {});
$ clang-format -style='{RemoveSemicolon: true}' test.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUsGO3CAM_RpysSYikEySA4eZne2ph6or9U6Ik9CSEAHZav--TmaqblfqpZIleLZ5vIfpfP-mvmGI1i9MXmDWdmH8xviFnfkj7lCUYHSChDHlZl3vWeN0jPAEg120A1ZdKXpcA1Ir9kw0jlU3CmD1ldU3Jlomr-8InV7G0-DDTMynmN4cMkldNbV_xdm_4gvO1nh3F5fChgdL_UHGl8_Pl5dniFs32wQaum2EgKsPpNfDlNIa6TwTnyhGm6aty42fCTj3-ns5rcF_R5MI2hg3jLQBvfRgF-O2HiFNCCboOEGnzY8UtMH8fn2e5x_eLENVnM9NW0hJoFeyb2Wrs2STQ_WX64MRI_gF6Ny_TBPJFpz6fydVy5s2m5QsTDNorEXHeSfrcihk0xRtWdYFl-XQZE536KLaRynEe6UEmXiCPbtL3mF1y6wSXIiiEJxLLmSbC13J_qxlO2AjKmlYyZE-lct3ZbkPYxbUIZJmFKnobEzxT5G-kx0XxIcA_xMXox936S1NPqh7LjusqcPXL_SU2gw">