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

    <tr>
        <th>Summary</th>
        <td>
            clang-format removes space between 'override' and curly brace when there's a trailing semicolon
        </td>
    </tr>

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

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

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

<pre>
    Consider:

```
$ echo 'struct S { void f() override {}; };' | clang-format -style=chromium
struct S {
  void f() override{};
};
```
Note the missing space between 'override' and '{'.

This only seems to happen when there's a trailing semicolon --- which is of course unnecessary and -Wextra-semi warns about it --- but it would be nice if clang-format could handle it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUk2P2yAQ_TX4MrLlYDtODj50N-qxl1bqmY-xocIQAU6a_vqOnd1tIlVqJQQzzMx7bwZk0LfhNfhkNUbWfGL1idXv-75-W3eXt4DKBGC8TzkuKsNXYP0LXILVMDJ-YPwI4YIxEtgaYf2JNS9wP6iKrFdQTvipHEOcRYYy5ZtD1pyUiWG2y3yneoS_38DfWT5I3iQ-2s_qv4SMkA3CbFOyfoJ0FgpBYr4i-rWnD0wSKrxer1Z43lePQ_lmbILg3Q0S4pwgBzDifCaIq6GNGOKKkEBAjsK6jQpnq4ILHsqypDyrDKwoI6iwxISweI8KUxLxtlGX3_EnVZdrIVxF9AQnw5LB5g1C3s1rWJymFsBbasWOz7NVW9QQnqNgrgocdvv9ju-7fdMVemj0sTmKItvscHiqjDjTMNK_R6SWSIOQcU37j_YLSh9Mzue0_jT-mdZks1lkpcJMjnOX96M8x_ADVSaX3mvBREbXN3VXmEHJQ8u51LtO6LrBndJj3faHTnb6eOzVvnBCoksD6-j1-GNn5LLuVNiB15zXB97s2rZuukohP4x1x7EdUbayZ22NM6mvVilViFMRh02VXKZEQWdTTn-Cgn7U5BE3RsIXSzYhDr_moHEuNv3DJv431UwVhw">