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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Add an option that dictates how alternative-token operators are spelt
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            new-feature
      </td>
    </tr>

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

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

<pre>
    Some C++ programmers use alternative tokens instead of symbol tokens. We should have a way to ensure that the tokens can be checked.

```yaml
LogicalOperatorSpelling: Symbol|Words|AsIs|Custom
  LogicalAndSpelling: Symbol|Word|AsIs
  LogicalOrSpelling: Symbol|Word|AsIs
  LogicalNotSpelling: Symbol|Word|AsIs
```
There should also be equivalents for bitwise operators and compound operators.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsFu2zAM_Rr7QsSQFTuODz6kCQYMGNZDBvRMW4ytVpYyiU6Qv5-cpFkLrMAAghRJPYqPYuvUpdm7kWCbyKcocPSu9ziO5ANMgQANk7fI-kTA7o1sAG0DEypwBwiXsXXmnsjghSAMbjIKBoz3Ec54iUmIyclH_IAc1aNQhxZagm6g7o1UlohdIjZ3vRI3ueBobqEfrtcdmucjeWTn90cyRts-WW5gf20jqbYvzqsQ7SZ8n812CuzGGxzgXmBj1ZfYd-hnxPPXj_0b8NPx_yEeNG_ur4H8Y4RogpvHQ78nfUJDlgMcnIdW81nHn3H3QQRAq6Bz49FN8fAIZyk1-WpVVMW6qEWqmqWqlzWmrNlQk5RPnUHbL2LJETkpd7BR8VEbC7B29vZZSneMTAEGd_64CovrD35sYe47UuZ08qYZmI8hMk_ktyi95mFqs9hhdIw5vZtF3LVX6ji6OoSJQjyU6zwv06Fp6zJf5bUoOiwI14iHSlEhsV1JUZUVpQZbMmGmkUj5iYmUidxCNJbOiwMhx9Wbg-Uu1Y0UUuYiKinWucgKoTDvDkLVa6rUgZJC0IjaZHN_mfN96ptrq-3Uh5g0OnD4m8QQdG_pOs25Pk48ON90r6pNr5SaK58_Jlwfeg">