Clang-Tidy for
```c++
template <class Derived>
struct Crtp {
Derived& operator=(decltype(nullptr)) {
return *static_cast<Derived*>(this);
};
};
struct S : Crtp<S> {
using Crtp<S>::operator=;
};
```
should not produce
```
<source>:3:3: warning: operator=() should return 'Crtp&' [misc-unconventional-assign-operator]
3 | Derived& operator=(decltype(nullptr)) {
| ^
```
It should only flag assignments that are special member functions (i.e. copy- or move-assignments), not other assignments.
Clang-Tidy for
should not produce
It should only flag assignments that are special member functions (i.e. copy- or move-assignments), not other assignments.