[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-21 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. https://reviews.llvm.org/D28022 changes performance-unnecessary-value-param so that it handles this part of modernize-pass-by-value. So this isn't the end of the story here yet. Comment at: clang-tools-extra/trunk/test/clang-tidy/misc-move-con

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-21 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. LG. In https://reviews.llvm.org/D26453#592934, @flx wrote: > In https://reviews.llvm.org/D26453#590720, @malcolm.parsons wrote: > > > Add ValuesOnly option to modernize-pass-by-value. > > > Thanks for doing this. Alex, would this work for us? Yep, I think so. ===

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-17 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290051: [clang-tidy] Remove duplicated check from move-constructor-init (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26453?vs=78867&id=81849#toc Repository: rL LL

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D26453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-14 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D26453#610668, @malcolm.parsons wrote: > In https://reviews.llvm.org/D26453#592934, @flx wrote: > > > In https://reviews.llvm.org/D26453#590720, @malcolm.parsons wrote: > > > > > Add ValuesOnly option to modernize-pass-by-value. > > > >

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-01 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D26453#592934, @flx wrote: > In https://reviews.llvm.org/D26453#590720, @malcolm.parsons wrote: > > > Add ValuesOnly option to modernize-pass-by-value. > > > Thanks for doing this. Alex, would this work for us? ping. https://reviews

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-22 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 78867. malcolm.parsons added a comment. Mention in release notes. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/misc/MoveConstructorInitCheck.cpp clang-tidy/misc/MoveConstructorInitCheck.h clang-tidy/mo

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-15 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D26453#596254, @aaron.ballman wrote: > (This part of the check is one half modernization, one half performance, and > one half correctness, depending on which lens you view the code through.) The performance part should be handled by

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-15 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I think this meets my needs for the cert-oop11-cpp check as it appears to be preserving the original behavior. If a user has the `UseCERTSemantics` option set in one of their scripts, that appears to be silently accepted and discarded currently, so I don't think t

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-11 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26453#590720, @malcolm.parsons wrote: > Add ValuesOnly option to modernize-pass-by-value. Thanks for doing this. Alex, would this work for us? https://reviews.llvm.org/D26453 ___ cfe-commits maili

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77456. malcolm.parsons added a comment. Store new option. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/misc/MoveConstructorInitCheck.cpp clang-tidy/misc/MoveConstructorInitCheck.h clang-tidy/modernize/

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77371. malcolm.parsons updated the summary for this revision. malcolm.parsons added a comment. Add ValuesOnly option to modernize-pass-by-value. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/misc/MoveConstr

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77358. malcolm.parsons added a comment. Update comment in performance-unnecessary-value-param check. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/misc/MoveConstructorInitCheck.cpp clang-tidy/misc/MoveCon

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D26453#590636, @flx wrote: > Is the modernize-pass-by-value check configurable in a way to only trigger > when copied constructor arguments are not moved? No; good idea. https://reviews.llvm.org/D26453 __

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Felix Berger via cfe-commits
flx added a comment. Is the modernize-pass-by-value check configurable in a way to only trigger when copied constructor arguments are not moved? I think our use case has been to have move-constructor-init check enabled to catch cases that can be optimized but not trigger on every constructor th

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, alexfh, flx. malcolm.parsons added a subscriber: cfe-commits. An addition to the move-constructor-init check was duplicating the modernize-pass-by-value check. Remove the additional check and UseCERTSemantics op