llvm-project/clang-tools-extra/clang-tidy
Angel Garcia Gomez 26fd0e8b62 Create modernize-make-unique check.
Summary: create a check that replaces 'std::unique_ptr<type>(new type(args...))' with 'std::make_unique<type>(args...)'. It was on the list of "Ideas for new Tools". It needs to be tested more carefully, but first I wanted to know if you think it is worth the effort.

Reviewers: klimek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D13166

llvm-svn: 248785
2015-09-29 09:36:41 +00:00
..
google Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang. 2015-09-17 13:31:25 +00:00
llvm [clang-tidy] Fix llvm-include-order check on Windows. 2015-09-04 15:46:51 +00:00
misc [clang-tidy] Updated misc-unused-raii documentation. 2015-09-25 17:50:11 +00:00
modernize Create modernize-make-unique check. 2015-09-29 09:36:41 +00:00
readability [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck 2015-09-28 08:59:12 +00:00
tool [clang-tidy] add option to specify build path 2015-09-28 17:53:04 +00:00
utils [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt [clang-tidy] Move IncludeSorter.* and IncludeInserter.* to clang-tidy/utils/ 2015-08-14 14:31:31 +00:00
ClangTidy.cpp [clang-tidy] Static Analyzer checker configuration options pass-through. 2015-03-11 17:25:22 +00:00
ClangTidy.h Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Ignore spaces in -checks= 2015-09-16 16:16:53 +00:00
ClangTidyDiagnosticConsumer.h Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
ClangTidyModuleRegistry.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
ClangTidyOptions.cpp [clang-tidy] Don't ignore default set of checks when a config file is found. 2015-02-05 14:50:17 +00:00
ClangTidyOptions.h [clang-tidy] Make FileOptionsProvider fields protected to make extending it easier 2015-08-12 19:29:57 +00:00
Makefile [clang-tidy] Create clang-tidy module modernize. Add pass-by-value check. 2015-08-14 13:17:11 +00:00
add_new_check.py [clang-tidy] add_new_check.py improvements: add doc file, refer it from .h 2015-09-10 13:56:39 +00:00