hanchenye-llvm-project/clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst

14 lines
493 B
ReStructuredText

.. title:: clang-tidy - misc-move-constructor-init
misc-move-constructor-init
==========================
"cert-oop11-cpp" redirects here as an alias for this check.
The check flags user-defined move constructors that have a ctor-initializer
initializing a member or base class through a copy constructor instead of a
move constructor.
It also flags constructor arguments that are passed by value, have a non-deleted
move-constructor and are assigned to a class field by copy construction.