ftingaud added a comment.
Hi,
Yes please!
https://reviews.llvm.org/D43766
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ftingaud updated this revision to Diff 138398.
ftingaud added a comment.
Clean code along code review recommendations.
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/modernize/MakeUniqueCheck.cpp
clan
ftingaud added a comment.
Hi,
I think all requested modifications were done.
Regards,
Fred
https://reviews.llvm.org/D43766
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ftingaud added inline comments.
Comment at: test/clang-tidy/modernize-make-unique-cxx14.cpp:10
+ // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: use std::make_unique instead
+ // CHECK-FIXES: auto my_ptr = std::make_unique(1);
+ return 0;
Quuxplusone wrote:
> IIU
ftingaud updated this revision to Diff 136575.
ftingaud added a comment.
Remove customizable c++ version that added no real value.
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/modernize/MakeUniqueChec
ftingaud added inline comments.
Comment at: clang-tidy/modernize/MakeUniqueCheck.cpp:21
+: MakeSmartPtrCheck(Name, Context, "std::make_unique"),
+ MinimumLanguageVersion(Options.get("MakeUniqueLanguageVersion",
+ getDefaultMinimumL
ftingaud updated this revision to Diff 136286.
ftingaud added a comment.
Correct case of custom make_unique functions that should still work in c++11.
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/mode
ftingaud updated this revision to Diff 136245.
ftingaud added a comment.
Apply clang-format on changelist.
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/modernize/MakeUniqueCheck.cpp
clang-tidy/moder
ftingaud updated this revision to Diff 136094.
ftingaud added a comment.
Remove two useless namespaces
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/modernize/MakeUniqueCheck.cpp
clang-tidy/modernize
ftingaud updated this revision to Diff 136093.
ftingaud added a comment.
Update with tests and cleaning as indicated by reviewers.
https://reviews.llvm.org/D43766
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tidy/modernize/MakeUniqueChec
ftingaud created this revision.
ftingaud added reviewers: hokein, Prazek.
ftingaud added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun.
For a c++11 code, the clang-tidy rule "modernize-make-unique" should return
immediately, as std::make_unique is not supported.
11 matches
Mail list logo