<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61632>61632</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Bad ObjC++ @selector || formatting
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aeubanks
</td>
</tr>
</table>
<pre>
clang-format ends up formatting the following code as
```
- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
if (action == @selector(showGuessPanel:) || action == @selector
(toggleGrammarChecking:)) {
*valid = spellCheckUserModifiable;
return YES;
}
return NO;
}
```
the `@selector`s around the `||` are very awkwardly formatted
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Ul1r4zoQ_TXjF5FgjxN_PPihTppSuLe5UO7CPo6lsa1WtoIkN_TfL3aSNgu7YGRGOjqjM-eQ97obmSvY1rDdRzSF3rqKeGpofPdRY9VnJQ2N3aq1bqAgeFReTCdxKYMeOxF6Fq01xp7nSlrFgjzEe4gfrmsWX7-lXAnAoj4e_wEsP8hoRYH_9-yex8CuJcnPgQdIHwALrSDdvbz-uKLUH2CPgKUOPAjI6wu_0O3cgWTQdhSQ7iHdC9jEng3LYB1g4Xt7fprY-_9oZLP0KgXkO8h34u_3LuyARbBdZ_jJ0TCQ2_Us3_XYXVguRPUX9mFROLMJf2JjFvQs41-rdKupMQzpDS6EcBwmN4qfj69325Dv7-f5hXo5foG-Ib8P-7LOFs1bd2Ky2AtydhqVuJ0u-iGLhSDH4oPdp6Dz-5mcMp83w1lFqkpVmZYUcZVkeblNiiJPor6SSLihts1o28iGsSmauM2LIseckqwtIl1hjGmcImISJ0mylqmUG85jbrcoVdnAJuaBtFkb8zGsresi7f3EVZZkKUaGGjZ-iSriyGexHALinFxXzXdWzdR52MRG--C_WYIOZsn4fZRhuxc1KXFs3naANWB9b_YtDd85jyZnqj6Ek1-cPgAeOh36qVlLOwAe5m7X3-rk7BvLAHhY3ugBD4uGXwEAAP__HM4Maw">