[PATCH] D90392: [clang-tidy] Omit std::make_unique/make_shared for default initialization.
Stephen Kelly via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 14:11:46 PST 2020
steveire added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-make-shared.cpp:51
// CHECK-FIXES: std::shared_ptr<int> P1 = std::make_shared<int>();
+ std::shared_ptr<int> P2 = std::shared_ptr<int>(new int);
----------------
I'm a bit confused. Why don't we want to transform this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90392/new/
https://reviews.llvm.org/D90392
More information about the cfe-commits
mailing list