]> granicus.if.org Git - clang/commit
Update fix-it hints for std::move warnings.
authorRichard Trieu <rtrieu@google.com>
Thu, 8 Aug 2019 00:12:51 +0000 (00:12 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 8 Aug 2019 00:12:51 +0000 (00:12 +0000)
commite74367a39b6d2bbdcb1a38c0fe6c58e214b97741
tree5d02aec8ac316f540ee12e65420fa9a77fc5a1c5
parent4577174153ee0fbabc142fee3bf4c178b56ec635
Update fix-it hints for std::move warnings.

Fix -Wpessimizing-move and -Wredundant-move when warning on initializer lists.
The new fix-it hints for removing the std::move call will now also suggest
removing the braces for the initializer list so that the resulting code will
still be compilable.

This fixes PR42832

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368237 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaCXX/warn-pessmizing-move.cpp
test/SemaCXX/warn-redundant-move.cpp