2016-05-04 20:02:22 +08:00
|
|
|
.. title:: clang-tidy - misc-unconventional-assign-operator
|
|
|
|
|
|
|
|
misc-unconventional-assign-operator
|
2016-05-09 18:00:52 +08:00
|
|
|
===================================
|
2016-05-04 20:02:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
Finds declarations of assign operators with the wrong return and/or argument
|
2016-06-08 02:38:42 +08:00
|
|
|
types and definitions with good return type but wrong ``return`` statements.
|
2016-05-04 20:02:22 +08:00
|
|
|
|
|
|
|
* The return type must be ``Class&``.
|
|
|
|
* Works with move-assign and assign by value.
|
|
|
|
* Private and deleted operators are ignored.
|
|
|
|
* The operator must always return ``*this``.
|