[PATCH] D19183: [clang-tidy] Add modernize-make-shared check
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 24 11:34:59 PDT 2016
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 at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:27
@@ +26,3 @@
+ :
+
+ ClangTidyCheck(Name, Context),
----------------
Remove two extra blanks.
================
Comment at: test/clang-tidy/modernize-make-shared.cpp:81
@@ +80,3 @@
+
+ std::shared_ptr<int> R(new int());
+
----------------
Why can't this case convert to `std::shared_ptr<int> R = std::make_shared<int>(new int())`?
Repository:
rL LLVM
http://reviews.llvm.org/D19183
More information about the cfe-commits
mailing list