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

Piotr Padlewski via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 24 14:25:08 PDT 2016


Prazek added inline comments.

================
Comment at: test/clang-tidy/modernize-make-shared.cpp:81
@@ +80,3 @@
+
+  std::shared_ptr<int> R(new int());
+
----------------
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>()?


Repository:
  rL LLVM

http://reviews.llvm.org/D19183





More information about the cfe-commits mailing list