Extra Clang Tools 3.9 documentation

clang-tidy - misc-move-constructor-init

«  misc-move-const-arg   ::   Contents   ::   misc-multiple-statement-macro  »

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.

«  misc-move-const-arg   ::   Contents   ::   misc-multiple-statement-macro  »