Haojian Wu
115b707584
[clang-tidy] Ignore macros in make-unique check.
...
Summary:
The check doesn't fully support smart-ptr usages inside macros, which
may cause incorrect fixes, or even crashes, ignore them for now.
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: JDevlieghere, xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D36264
llvm-svn: 310050
2017-08-04 11:18:00 +00:00
Haojian Wu
040c0f96cc
[clang-tidy] Add "MakeSmartPtrFunction" option to modernize-make-shared/unique checks.
...
Reviewers: alexfh, aaron.ballman
Reviewed By: alexfh
Subscribers: JDevlieghere, Eugene.Zelenko, xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D34206
llvm-svn: 307130
2017-07-05 07:49:00 +00:00
Malcolm Parsons
54c5a545be
[clang-tidy] Enhance modernize-make-unique to handle unique_ptr.reset()
...
Summary:
Avoid naked new in unique_ptr.reset() by using make_unique
Fixes http://llvm.org/PR27383
Reviewers: alexfh, aaron.ballman
Subscribers: Prazek, cfe-commits
Differential Revision: https://reviews.llvm.org/D25898
llvm-svn: 285589
2016-10-31 15:48:01 +00:00
Alexander Kornienko
785e5223d3
[clang-tidy] Updates to documentation: formatting, titles, etc.
...
llvm-svn: 256259
2015-12-22 17:36:49 +00:00
Angel Garcia Gomez
05ca3ec7d0
Update clang-tidy documentation.
...
Summary:
Improve modernize-use-auto documentation (https://llvm.org/bugs/show_bug.cgi?id=24962 ).
Add documentation for modernize-make-unique.
Reviewers: klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13346
llvm-svn: 249017
2015-10-01 14:50:40 +00:00