llvm-project/clang-tools-extra/docs/clang-tidy/checks/misc-unconventional-assign-...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
472 B
ReStructuredText
Raw Normal View History

.. title:: clang-tidy - misc-unconventional-assign-operator
misc-unconventional-assign-operator
2016-05-09 18:00:52 +08:00
===================================
Finds declarations of assign operators with the wrong return and/or argument
types and definitions with good return type but wrong ``return`` statements.
* 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``.