Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-05-02 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D19183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-29 Thread Piotr Padlewski via cfe-commits
Prazek added a subscriber: alexfh. Prazek added a comment. ping. @alexfh are you planning to take a look? http://reviews.llvm.org/D19183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek removed rL LLVM as the repository for this revision. Prazek updated this revision to Diff 55295. http://reviews.llvm.org/D19183 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeSharedCheck.cpp clang-tidy/modernize/MakeSharedCheck.h clang-tidy/modernize/MakeSmartP

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek marked 3 inline comments as done. Prazek added a comment. Repository: rL LLVM http://reviews.llvm.org/D19183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-25 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/modernize-make-shared.cpp:81 @@ +80,3 @@ + + std::shared_ptr R(new int()); + Prazek wrote: > hokein wrote: > > Why can't this case convert to `std::shared_ptr R = > > std::make_shared(new int())`? > You

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-24 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: test/clang-tidy/modernize-make-shared.cpp:81 @@ +80,3 @@ + + std::shared_ptr R(new int()); + hokein wrote: > Why can't this case convert to `std::shared_ptr R = > std::make_shared(new int())`? You mean std::shared_ptr R

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-24 Thread Haojian Wu via cfe-commits
hokein added a comment. The patch looks almost good, some nits. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:1 @@ +1,2 @@ + +//===--- MakeSmartPtrCheck.cpp - clang-tidy===// Extra blank line. Comment a

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-19 Thread Piotr Padlewski via cfe-commits
Prazek added a comment. ping Repository: rL LLVM http://reviews.llvm.org/D19183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-15 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: alexfh, mnbvmar, staronj, krystyna, angelgarcia. Prazek added a subscriber: cfe-commits. Because modernize-make-shared do almos the same job, I refactored common code to MakeSmartPtrCheck. http://reviews.llvm.org/D19183 Files: clang-tidy/