llvm-project/clang-tools-extra/clang-tidy/modernize
Haojian Wu 0dc8fd7460 [clang-tidy] Fix one corner case in make-unique check.
Summary:
Previously, we tried to cover all "std::initializer_list" implicit conversion
cases in the code, but there are some corner cases that not covered (see
newly-added test in the patch).

Sipping all implicit AST nodes is a better way to filter out all these cases.

Reviewers: ilya-biryukov

Subscribers: klimek, xazax.hun, cfe-commits

Differential Revision: https://reviews.llvm.org/D44137

llvm-svn: 326799
2018-03-06 14:34:35 +00:00
..
AvoidBindCheck.cpp Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC). 2016-11-29 18:24:01 +00:00
AvoidBindCheck.h [clang-tidy] Adds modernize-avoid-bind check 2016-05-12 20:06:04 +00:00
CMakeLists.txt [clang-tidy] Replace the usage of std::uncaught_exception with std::uncaught_exceptions 2018-02-20 10:48:38 +00:00
DeprecatedHeadersCheck.cpp [clang-tidy] minor improvements in modernise-deprecated-headers check 2016-08-10 18:01:45 +00:00
DeprecatedHeadersCheck.h [clang-tidy] Fix doxygen errors. NFC. 2016-06-17 11:43:33 +00:00
LoopConvertCheck.cpp Adapt clang-tidy checks to changing semantics of hasDeclaration. 2017-08-02 13:13:11 +00:00
LoopConvertCheck.h Handle correctly containers that are data members in modernize-loop-convert. 2015-11-03 16:38:31 +00:00
LoopConvertUtils.cpp Remove trailing whitespace in docs and clang-tidy sources. 2016-12-13 16:38:45 +00:00
LoopConvertUtils.h Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC). 2016-11-29 18:24:01 +00:00
MakeSharedCheck.cpp Adapt clang-tidy checks to changing semantics of hasDeclaration. 2017-08-02 13:13:11 +00:00
MakeSharedCheck.h [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
MakeSmartPtrCheck.cpp [clang-tidy] Fix one corner case in make-unique check. 2018-03-06 14:34:35 +00:00
MakeSmartPtrCheck.h [clang-tidy] Don't generate fixes for initializer_list constructor in make_unique check. 2017-08-17 10:14:52 +00:00
MakeUniqueCheck.cpp Adapt clang-tidy checks to changing semantics of hasDeclaration. 2017-08-02 13:13:11 +00:00
MakeUniqueCheck.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ModernizeTidyModule.cpp [clang-tidy] Replace the usage of std::uncaught_exception with std::uncaught_exceptions 2018-02-20 10:48:38 +00:00
PassByValueCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
PassByValueCheck.h [clang-tidy] Remove duplicated check from move-constructor-init 2016-12-17 20:23:14 +00:00
RawStringLiteralCheck.cpp [clang-tidy] Don't modernize-raw-string-literal if replacement is longer. 2017-01-24 15:18:11 +00:00
RawStringLiteralCheck.h [clang-tidy] Don't modernize-raw-string-literal if replacement is longer. 2017-01-24 15:18:11 +00:00
RedundantVoidArgCheck.cpp [clang-tidy] Cleaning up language options. 2016-09-24 02:13:45 +00:00
RedundantVoidArgCheck.h Add support for type aliases to modernize-redundant-void-arg.cpp 2016-04-14 19:28:13 +00:00
ReplaceAutoPtrCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
ReplaceAutoPtrCheck.h [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
ReplaceRandomShuffleCheck.cpp [clang-tidy] Unify the way IncludeStyle and HeaderFileExtesions options are used 2017-07-20 12:02:03 +00:00
ReplaceRandomShuffleCheck.h [clang-tidy] New check: modernize-replace-random-shuffle. 2017-04-24 09:27:20 +00:00
ReturnBracedInitListCheck.cpp [clang-tidy] Add check 'modernize-return-braced-init-list' 2017-02-15 17:06:06 +00:00
ReturnBracedInitListCheck.h [clang-tidy] Add check 'modernize-return-braced-init-list' 2017-02-15 17:06:06 +00:00
ShrinkToFitCheck.cpp [clang-tidy] Cleaning up language options. 2016-09-24 02:13:45 +00:00
ShrinkToFitCheck.h [clang-tidy] Move misc-use-override and readability-shrink-to-fit to "modernize/" 2015-08-31 13:17:43 +00:00
UnaryStaticAssertCheck.cpp Fix build after r319688: s/CPlusPlus1z/CPlusPlus17/ 2017-12-04 20:38:21 +00:00
UnaryStaticAssertCheck.h [clang-tidy] Add new modernize use unary assert check 2017-07-12 13:43:35 +00:00
UseAutoCheck.cpp Apply clang-tidy's performance-unnecessary-value-param to clang-tidy. 2017-03-21 21:34:58 +00:00
UseAutoCheck.h Apply clang-tidy's performance-unnecessary-value-param to clang-tidy. 2017-03-21 21:34:58 +00:00
UseBoolLiteralsCheck.cpp [clang-tidy] Add modernize-use-bool-literals.IgnoreMacros option 2017-07-17 14:43:06 +00:00
UseBoolLiteralsCheck.h [clang-tidy] Add modernize-use-bool-literals.IgnoreMacros option 2017-07-17 14:43:06 +00:00
UseDefaultMemberInitCheck.cpp [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a 2018-01-23 15:32:42 +00:00
UseDefaultMemberInitCheck.h clang-tidy: add IgnoreMacros option to modernize-use-default-member-init 2017-05-08 15:13:31 +00:00
UseEmplaceCheck.cpp [clang-tidy] Add modernize-use-emplace.IgnoreImplicitConstructors option 2017-08-10 12:19:05 +00:00
UseEmplaceCheck.h [clang-tidy] Add modernize-use-emplace.IgnoreImplicitConstructors option 2017-08-10 12:19:05 +00:00
UseEqualsDefaultCheck.cpp [clang-tidy] Add modernize-use-equals-default.IgnoreMacros option 2017-08-17 23:07:59 +00:00
UseEqualsDefaultCheck.h [clang-tidy] Add modernize-use-equals-default.IgnoreMacros option 2017-08-17 23:07:59 +00:00
UseEqualsDeleteCheck.cpp [clang-tidy] Ignore private =deleted methods in macros. 2017-05-08 14:17:27 +00:00
UseEqualsDeleteCheck.h [clang-tidy] Add modernize-use-equals-delete check 2016-11-10 16:46:59 +00:00
UseNoexceptCheck.cpp [clang-tidy] New checker to replace dynamic exception specifications 2017-06-08 14:04:16 +00:00
UseNoexceptCheck.h Wdocumentation fix. 2017-06-08 17:01:01 +00:00
UseNullptrCheck.cpp [clang-tidy] Kill marco. No functionality change. 2018-02-02 13:39:07 +00:00
UseNullptrCheck.h [clang-tidy] Fix use-after-free in UseNullptrCheck. 2015-08-19 23:57:34 +00:00
UseOverrideCheck.cpp [clang-tidy] Fix modernize-use-override incorrect replacement 2017-07-07 10:15:24 +00:00
UseOverrideCheck.h [clang-tidy] Move misc-use-override and readability-shrink-to-fit to "modernize/" 2015-08-31 13:17:43 +00:00
UseTransparentFunctorsCheck.cpp [clang-tidy] New check to prefer transparent functors to non-transparent ones. 2016-11-16 14:42:10 +00:00
UseTransparentFunctorsCheck.h [clang-tidy] New check to prefer transparent functors to non-transparent ones. 2016-11-16 14:42:10 +00:00
UseUncaughtExceptionsCheck.cpp [clang-tidy] Replace the usage of std::uncaught_exception with std::uncaught_exceptions 2018-02-20 10:48:38 +00:00
UseUncaughtExceptionsCheck.h [clang-tidy] Replace the usage of std::uncaught_exception with std::uncaught_exceptions 2018-02-20 10:48:38 +00:00
UseUsingCheck.cpp clang-tidy: add IgnoreMacros option to modernize-use-default-member-init 2017-05-08 15:13:31 +00:00
UseUsingCheck.h Fixes for modernize-use-using check: 2017-04-02 19:12:20 +00:00