+11
−25
Loading
------------------------------------------------------------------------ r243463 | rtrieu | 2015-07-28 12:06:16 -0700 (Tue, 28 Jul 2015) | 6 lines Do not give a -Wredundant-move warning when removing the move will result in an error. If the object being moved has a move constructor and a deleted copy constructor, std::move is required, otherwise Clang will give a deleted constructor error. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r243538 | rtrieu | 2015-07-29 10:03:34 -0700 (Wed, 29 Jul 2015) | 7 lines Disable -Wpessimizing-move and -Wredundant-move in template instantiations. Dependent types can throw off the analysis for these warnings, possibly giving conflicting warnings and fix-its. Disabling the warning in template instantiations will prevent this problem, and will still catch the non-dependent cases in templates. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r243594 | rtrieu | 2015-07-29 16:47:19 -0700 (Wed, 29 Jul 2015) | 7 lines Fix -Wredundant-move warning. Without DR1579 implemented, the only case for -Wredundant-move is for a parameter being returned with the same type as the function return type. Also include a check to verify that the move constructor will be used by matching nodes in the AST dump. ------------------------------------------------------------------------ llvm-svn: 243607