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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format: Incorrect removal `;` by RemoveSemicolon
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ````
   class [[deprecated("")]] C
 {
      enum E
      {
      };
   };
````
The `;` of the class is removed by clang-format using `RemoveSemicolon: true`.

Encountered on clang-format 16-rc2
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUdGumzAM_RrnJSoKSQPkIQ_t5SJtj9u0dwguZApJlYQ79e8nWLV2vZIFsuNjn3Pcp2Qnj6hBnkG2pF_zHKL--vN0RU-GMN40VOwRrAV2opQa16dEd9B5xGtE02ccgTfA-R4KZAuypW93CNTnf2BKKfp1oe_PlZcGqFsQj8pz-pnQjxnplogzVIyGC80z3inaRCMu4QNHOty2mp8OlxCXPtM1WT9tuG97w3dcrAkueBAnmuOKULHivnH_vnsTVp8x4kiD_39WWR2i4WTUYlRC9QR1WdUNY40oKzLrsRqQ1UJxLstaXowS0hijVC2PYmBNQ6zmjAsmmGSKy7IqLqqUKBWTnCEfcYAjw6W3rnDuYylCnIhNaUVdlWXTENcP6NJ-RM49_qb743YI2ZKoN8xhWKcER-ZsyukxJdvsUL89adnkf_EmxIgm_zWvd0_2Djf6YhhZo9NzztcE4gS8A95NNs_rUJiwAO-2Zfff4RrDLzQZeLdTTMC7XcKfAAAA___Df70t">