llvm-project/clang-tools-extra/clang-tidy/performance
Felix Berger 1c1f794c2b Always allow std::function to be copied.
Since its call operator is const but can modify the state of its underlying
functor we cannot tell whether the copy is necessary or not.

This avoids false positives.

Reviewed-by: aaron.ballman, gribozavr2

Differential Revision: https://reviews.llvm.org/D89332
2020-10-21 17:20:35 -04:00
..
CMakeLists.txt [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
FasterStringFindCheck.cpp [clang-tidy] performance-faster-string-find string-view 2020-06-30 16:45:59 +01:00
FasterStringFindCheck.h [clang-tidy] Update lang restrictions on perf module 2020-06-28 15:18:08 +01:00
ForRangeCopyCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
ForRangeCopyCheck.h [clang-tidy] Update lang restrictions on perf module 2020-06-28 15:18:08 +01:00
ImplicitConversionInLoopCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
ImplicitConversionInLoopCheck.h [clang-tidy] Update lang restrictions on perf module 2020-06-28 15:18:08 +01:00
InefficientAlgorithmCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
InefficientAlgorithmCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
InefficientStringConcatenationCheck.cpp [clang-tidy] Convert config options that are bools to use the bool overload of get(GlobalOrLocal)? 2020-04-12 23:06:09 +01:00
InefficientStringConcatenationCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
InefficientVectorOperationCheck.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
InefficientVectorOperationCheck.h [clang-tidy] Update lang restrictions on perf module 2020-06-28 15:18:08 +01:00
MoveConstArgCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
MoveConstArgCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
MoveConstructorInitCheck.cpp [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
MoveConstructorInitCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
NoAutomaticMoveCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
NoAutomaticMoveCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NoexceptMoveConstructorCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
NoexceptMoveConstructorCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
PerformanceTidyModule.cpp [clang-tidy] new performance-no-automatic-move check. 2019-11-22 08:47:55 +01:00
TriviallyDestructibleCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
TriviallyDestructibleCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
TypePromotionInMathFnCheck.cpp [clang-tidy] IncludeInserter: allow <> in header name 2020-09-28 15:14:04 +02:00
TypePromotionInMathFnCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
UnnecessaryCopyInitialization.cpp Always allow std::function to be copied. 2020-10-21 17:20:35 -04:00
UnnecessaryCopyInitialization.h [clang-tidy] Update lang restrictions on perf module 2020-06-28 15:18:08 +01:00
UnnecessaryValueParamCheck.cpp [clang-tidy] IncludeInserter: allow <> in header name 2020-09-28 15:14:04 +02:00
UnnecessaryValueParamCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00