<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61911>61911</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] SpaceBeforeParens and opererator less
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Jarod42
</td>
</tr>
</table>
<pre>
`operator<` is not handled correctly with `SpaceBeforeParens` (either Always or NonEmptyParenthesis):
Formatting:
```
struct S {
bool operator<(const S &) const;
bool operator<=(const S &) const;
bool operator>(const S &) const;
bool operator>=(const S &) const;
};
```
results in
```
struct S {
bool operator<(const S &) const;
bool operator<= (const S &) const;
bool operator> (const S &) const;
bool operator>= (const S &) const;
};
```
it should be
```
struct S {
bool operator< (const S &) const;
bool operator<= (const S &) const;
bool operator> (const S &) const;
bool operator>= (const S &) const;
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVMGOmzAQ_ZrhMkpkDHbCgcOmWQ49VJX2CwxMwJWDI49plL-vcCJlq6rtZit1JWTwzDzem3d4htkOE1ENagdqn5k5jj7Un03wfSmz1veXGrTwJwom-gDFJ9ACLePkI45m6h312PkQqIvugmcbRwQtXk6mox0dfKCvJtDECwrklmwcKeCTO5sLow_4xU_Px1O8pKk4ElsGWUHxBGIP4nY2PhxNjHYa7g0tbk-6cgxzF_EFYbO7VhBb7x2-Fi63nZ84TUkNssJ0heL3iGL_MOj5HYi_08Bmf__-efXrGYhnFxnt9Lr6v1zCx5d-B-QtRH8wykbk0c-ux5b-0aTHxb_NpY83Kevroq-KymRU53orlFRVnmdjLZTqVa43bdV3RUdKGaOrUre6yktZij6ztRSyEKUoclmqPF-TOrRUiDIXudxq6qAUdDTWrZ37flz7MGSWeaZa5wuDMy05TjEk5URnTE2QckmlUC-YVTsPDKVwliPf_xJtdCm_OmemYXVIYQFqj7-EEJqpT15d3UJHzNkcXD3GeOIlW2QDshlsHOd23fkjyGahub1Wp-C_URdBNkkcg2yS-B8BAAD__3udiYo">