Issue 58217
Summary [clang-format] Feature request: remove useless semicolons after function definition
Labels new issue
Assignees
Reporter lahwaacz
    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; }
};
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to