diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2015-10-06 16:27:03 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2015-10-06 16:27:03 +0000 |
| commit | fc4e042bf50d46fdd7f8d7c8c2c872ee2f2430b4 (patch) | |
| tree | 61ab3aaf14b3a902b371be28682625ae633a22a0 /clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst | |
| parent | c39c75dee407b27906d6a418461bb302bc047f08 (diff) | |
| download | bcm5719-llvm-fc4e042bf50d46fdd7f8d7c8c2c872ee2f2430b4.tar.gz bcm5719-llvm-fc4e042bf50d46fdd7f8d7c8c2c872ee2f2430b4.zip | |
Improved the misc-move-constructor-init check to identify arguments that are passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit.
Patch by Felix Berger!
llvm-svn: 249429
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst index d105714676b..e5244e0467f 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-move-constructor-init.rst @@ -5,3 +5,6 @@ misc-move-constructor-init 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. |

