llvm-project/clang-tools-extra/clang-tidy
Haojian Wu ceb0cc54f9 [clang-tidy] Fix make-unique check to work in C++17 mode.
Summary:
Previously, we intended to omit the check fix to the case when constructor has
any braced-init-list argument. But the HasListInitializedArgument was not
correct to handle all cases (Foo(Bar{1, 2}) will return false in C++14
mode).

This patch fixes it, corrects the tests, and makes the check to run at C++17 mode.

Reviewers: gribozavr

Subscribers: xazax.hun, cfe-commits

Tags: #clang

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

llvm-svn: 362361
2019-06-03 08:14:15 +00:00
..
abseil [clang-tidy] Move all checks to the new registerPPCallbacks API 2019-03-22 18:58:12 +00:00
android Remove unnecessary const&s; NFC 2019-05-23 02:52:39 +00:00
boost [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
bugprone [clang-tidy]: Add cert-oop54-cpp alias for bugprone-unhandled-self-assignment 2019-05-23 20:29:04 +00:00
cert [clang-tidy]: Add cert-oop54-cpp alias for bugprone-unhandled-self-assignment 2019-05-23 20:29:04 +00:00
cppcoreguidelines [clang-tidy] Add option "LiteralInitializers" to cppcoreguidelines-pro-type-member-init 2019-05-24 05:46:57 +00:00
fuchsia [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
google Revise the google-objc-global-variable-declaration check to match the style guide. 2019-05-31 23:41:15 +00:00
hicpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm [clang-tidy] Change the namespace for llvm checkers from 'llvm' to 'llvm_check' 2019-05-10 18:27:09 +00:00
misc [clang-tidy] Fix description for misc-definitions-in-headers. 2019-05-28 14:50:42 +00:00
modernize [clang-tidy] Fix make-unique check to work in C++17 mode. 2019-06-03 08:14:15 +00:00
mpi [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
objc [clang-tidy] Add a check for [super self] in initializers 🔍 2019-04-17 22:29:06 +00:00
openmp [clang-tidy] openmp-exception-escape check: point to the structured-block 2019-05-05 21:26:32 +00:00
performance [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
plugin [clang-tidy] A new OpenMP module 2019-03-22 19:46:01 +00:00
portability [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
readability [clang-tidy] Fix null pointer dereference in readability-identifier-naming 2019-05-28 11:54:01 +00:00
tool [clang-tidy] remove default header-filter for run-clang-tidy 2019-05-22 01:01:11 +00:00
utils [clang-tidy] Fix unused-variable warning after r361647. 2019-05-27 08:09:02 +00:00
zircon [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
CMakeLists.txt [clang-tidy] Separate the check-facing interface 2019-03-25 12:36:30 +00:00
ClangTidy.cpp [clang-tidy] Address post-commit comments 2019-04-18 14:18:14 +00:00
ClangTidy.h [clang-tidy] Separate the check-facing interface 2019-03-25 12:36:30 +00:00
ClangTidyCheck.cpp [clang-tidy] Separate the check-facing interface 2019-03-25 12:36:30 +00:00
ClangTidyCheck.h [clang-tidy] Remove the old ClangTidyCheck::registerPPCallbacks method 2019-04-03 14:03:43 +00:00
ClangTidyDiagnosticConsumer.cpp [clangd] Respect clang-tidy suppression comments 2019-05-19 04:06:52 +00:00
ClangTidyDiagnosticConsumer.h [clangd] Respect clang-tidy suppression comments 2019-05-19 04:06:52 +00:00
ClangTidyForceLinker.h [clang-tidy] A new OpenMP module 2019-03-22 19:46:01 +00:00
ClangTidyModule.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyModule.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyModuleRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyProfiling.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyProfiling.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpandModularHeadersPPCallbacks.cpp [clang-tidy] Fix a compiler warning. 2019-03-22 15:07:18 +00:00
ExpandModularHeadersPPCallbacks.h [clang-tidy] Fix a compiler warning. 2019-03-22 15:07:18 +00:00
add_new_check.py [clang-tidy] Change the namespace for llvm checkers from 'llvm' to 'llvm_check' 2019-05-10 18:27:09 +00:00
rename_check.py [clang-tidy] Change the namespace for llvm checkers from 'llvm' to 'llvm_check' 2019-05-10 18:27:09 +00:00