Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-24 Thread Vadym Doroshenko via cfe-commits
dvadym added a comment. Thanks alexfh! I've addressed your comments and uploaded new patch. PTAL Comment at: clang-tidy/misc/MoveConstantArgumentCheck.cpp:56 @@ +55,3 @@ +<< IsConstArg << IsVariable << IsTriviallyCopyable +<< FixItHint::CreateRemoval(Lexer::makeF

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-24 Thread Vadym Doroshenko via cfe-commits
dvadym updated this revision to Diff 41061. dvadym marked 8 inline comments as done. dvadym added a comment. In this patch alexfh comments addressed http://reviews.llvm.org/D12031 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MoveConstantArgument

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-20 Thread Vadym Doroshenko via cfe-commits
dvadym added a comment. Thanks for comments! PTAL Since it's added checking of trivially copyable arguments of move, it's needed to rename this check, what do you think about MoveNoEffectCheck? Comment at: clang-tidy/misc/MoveConstantArgumentCheck.cpp:11 @@ +10,3 @@ +#include "

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-20 Thread Vadym Doroshenko via cfe-commits
dvadym updated this revision to Diff 40751. dvadym marked 3 inline comments as done. dvadym added a comment. New in this upload: 1.Adding checking that language is C++ 2.Not consider calls of std::move in template instantation 3.Creating CharSourceRange for removal 4.Using Lexer::makeFileCharRang

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-09 Thread Vadym Doroshenko via cfe-commits
dvadym added a comment. Thanks for review comments! Could you please have an another look and help me with my questions? Comment at: clang-tidy/misc/MoveConstantArgumentCheck.cpp:10 @@ +9,3 @@ +void MoveConstantArgumentCheck::registerMatchers(MatchFinder* Finder) { + Finder->a

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-09 Thread Vadym Doroshenko via cfe-commits
dvadym updated this revision to Diff 39717. dvadym marked 5 inline comments as done. dvadym added a comment. Addressed reviewers' comments 1.Change message generation on using diag() string substitution 2.Added copyright 3.Rebase http://reviews.llvm.org/D12031 Files: clang-tidy/misc/CMakeList

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-03 Thread Vadym Doroshenko via cfe-commits
dvadym updated the summary for this revision. dvadym updated this revision to Diff 39077. dvadym marked 6 inline comments as done. dvadym added a comment. 1.Most comments addressed 2.Taking into consideration applying move to trivially copyable objects 3.Different message if move argument variable

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-03 Thread Vadym Doroshenko via cfe-commits
dvadym updated this revision to Diff 39080. dvadym marked an inline comment as done. dvadym added a comment. Small clean-up http://reviews.llvm.org/D12031 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MoveConstantArgumentCheck.cpp clang-tidy/mi

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-03 Thread Vadym Doroshenko via cfe-commits
dvadym added a comment. Thanks alexfh and sbenza for comments! I've addressed most of them. Could you please advice how to find that some expression has type which is template dependent? Regards, Vadym Comment at: clang-tidy/misc/MoveConstantArgumentCheck.cpp:20 @@ +19,3 @@ +