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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Remove redundant comparison operators
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

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

<pre>
    Since C++20 rewriting rules exists, so that it is e.g. not anymore necessary to define `operator!=` when `operator==` already exists.

I hope that the compilers will optimize accordingly, so that the rewrite rule is always as fast as the manual rule (as an example: If there used to be `a!=b` and `a==b` and you remove the former rule, that the compiler does not make `!(a==b)` out of it, i.e. 2 assemler instructions instead of one).

SonarLint already have a [check](https://rules.sonarsource.com/cpp/RSPEC-6186/) for this, so that you could spot what could also be adjusted.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkU89u4zgPfxr5QtSw6dhJDj40zRdggO-wmD4BIzGxprJkiHIz2adfSMkWU-xJEEXy90ckidirZx5Vf1D9saI1TSGO76s_ONIf1TmY-_huvWZ4U3hQeMAGIt-iTdZfIa6OBfi3lSQK30ACpIkS2ARWgOtrDT4kIH-fQ2TwrFmE4h1SAMMX6xnU0ISFI6UQFbaqO6qhgdvE_ttLd3y-kItM5v7ErFXzqprXHzCFhR_QaWLQYV6s4yhws85BWJKd7d8MpHWIxvqru__JNpc8NHFRlLmTu9FdgAQuJCmfOWsmv5J7JCnckQB54N80L45V9wo_LjktMqzCJos8F4H0UHYuArx5hIqkr9A9rBB5Dp9cgC4hzhwLUGb6H2VgAkvxdqaPgpEhcPfVFve5c1gThAvYlJvYmmtAIBGecwvrJcVVJxu8lAuTydnBs8L909r34Cn-3_r05fxEnwwEqj_oifWH6o8Kd1NKi6juVeFJ4amMRS25VMIaNdc6zApPelkUnn6-__W_t5eh3Q0le5_FQprstwnKfuiwOgOyhAS3HHvcyUnxlcyvVRKbujJjZ_bdnioe223fdlvc7rfVNLabftvvukvf0XDhVnfnvtca0ehmGPC8q-yIDfbNtmlbxKHb1kM_EGLXd9hvSO9IbRqeybrauc-5DvFaWZGVx3Yz9O2-cnRmJ2V3ELUjf31J1twVYt6lOOaql_N6FbVpXJnXrz7JJle27o-y_gg_HyMQ2azekE_lwylaCR7-XQap1ujG745fbZrW89PmDPI8XpYYfrFOCk-FuSg8Pcl_jvhPAAAA__9oHU3j">