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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Feature request: remove useless semicolons after function definition
        </td>
    </tr>

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

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

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

<pre>
    For example,
```cpp
int max(int a, int b)
{
    return a>b?a:b;
};
```
should be formatted without the semicolon after the closing brace:
```cpp
int max(int a, int b)
{
    return a>b?a:b;
}
```

In our project these useless semicolons seem to occur mostly after member function definitions, e.g.
```cpp
class Foo
{
    int getSomething() const { return something; };
};
```
should be
```cpp
class Foo
{
    int getSomething() const { return something; }
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U8Fu4yAQ_Rp8QbUAx3Z88KHZNFLP-wWAxzYVmCzgpt2v37GdbLRSKu2pFvI8YJh5jxmU7z7bkw8UPqQ7WyDiB2FHwp5Jxbahz-dtxUyJOvlBxH5BEj3pAhQRzfVIfdgAxS9AmsOEbsWLIsUJ7TPaw83zeMe3RNs0jn62HVVAex-cTAk6ejEJVxNNI9AIzmhvPYbuE4R1TVsfzTRQFaQGTPRNCh7R3_6vE_VzoOfg30CvvCPQOYKFGO8KFgiOJk-91ujufEz286rLgVNo-nnSyaDaDnozmQXGhTfkQ_6VTG0lpjl5_0DUoneA9NM7SCPeGd4FqqcawyaKnjfV8a9DcaD_lOs_SvetxL5mlUHLq6rkYt-IMuvaomuKRmbJJAstKQ9IZxqetjYj5ZGeQGIKwEy_ZogJ643Q-feHpduq9KA82RxsO6Z0jksnihOOAft3Vrn2DifWvt_M07VBcGpixJwIyr3gdTa2-6IpOa_qWum-ZyWrBOeN5rwTJdNcVZmVCmxcdBAhJrjQNQRilJKZVjAhOGM1q3f7XZkzAUXVVX3RM81K2ZMdAyeNzRceuQ9DFtqVkpqHiJvWxBTvm1g3M0ywXtsSX874IvGEHC9S6t_Zmrtduf8BCYNKQA">