brintos

brintos / llvm-project-archived public Read only

0
0
Text · 592 B · 49e3fd5 Raw
16 lines · plain
1.. title:: clang-tidy - misc-unconventional-assign-operator2 3misc-unconventional-assign-operator4===================================5 6 7Finds declarations of assign operators with the wrong return and/or argument8types and definitions with good return type but wrong ``return`` statements.9 10  * The return type must be ``Class&``.11  * The assignment may be from the class type by value, const lvalue12    reference, non-const rvalue reference, or from a completely different13    type (e.g. ``int``).14  * Private and deleted operators are ignored.15  * The operator must always return ``*this``.16