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

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 09:03:50 PDT 2016


hokein added inline comments.

================
Comment at: test/clang-tidy/modernize-make-shared.cpp:81
@@ +80,3 @@
+
+  std::shared_ptr<int> R(new int());
+
----------------
Prazek wrote:
> hokein wrote:
> > Why can't this case convert to  `std::shared_ptr<int> R = std::make_shared<int>(new int())`?
> You mean std::shared_ptr<int> R = std::make_shared<int>()?
Sorry, I misunderstood this statement before. Just Ignore the comment.


Repository:
  rL LLVM

http://reviews.llvm.org/D19183





More information about the cfe-commits mailing list