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

    <tr>
        <th>Summary</th>
        <td>
             [clang-tidy] cppcoreguidelines-c-copy-assignment-signature false positive with explicit object parameter
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          oracle-9
      </td>
    </tr>
</table>

<pre>
    The following code triggers `cppcoreguidelines-c-copy-assignment-signature` (aka `misc-unconventional-assign-operator`):
```cpp
struct Foo {
    Foo& operator=(this Foo&, Foo const&);
};
```
The check probably assumes the parameter copy/move assignment operator is always the rhs. With the C++23 explicit object parameter feature, this is no longer the case.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkkGPmzAQhX_NcBkRmTGQcOCw2YhfUKlnYwZw12Bkm2zz7ysg3eylh0pI-A36Hp6np0Iww8xcQ3GF4paoNY7O184rbTmtktZ1j_rHyNg7a92nmQfUrmOM3gwD-4BQCr0s2nkeVtOxNTOHVKfaLY_0MJ94jul2UHH1DKVAoIv6UBs6maDTddZuvvMcjZuVfVKpW9ir6DyUAqgC-QbiBuJtk_ujl-WYhOhXHbFxDuF8PWaIuA2ASvzykTegSxxNeH4Bet8h7eYQd12BfPJwvr3Of_94yC0MPbL-wMW7VrX2gSqEdeKAcWRclFcTR_a4RQDUTO7O-Eri6z5oAir7qR4H58dwwp8mjrt6B7oCXUki_16s0Saia3-xjt_8ez4CpXfctzIBZ4fWzQP73USrwKekq2VXyUolXGdnKuS5oKpMxpovValVLtuiLfI2l-rMuSDWFV0yWbZ5YmoSlItKyCwv8qI8Xfqu71XXaSEvvdQZ5IInZezJ2vt0cn5ITAgr15k4Z1mVWNWyDXuxiLRV85BG0z2AaCuarzcqbdchQC6sCTG8fKKJlmuE4vqNK274X03DXtnAuLhgorkzfm7h_jPOZPW2HmNcwlY1aoCawcRxbU_aTUDNdrfnK12822CgZl84ADXPne81_QkAAP__eKQWiQ">