llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines
Adam Balogh 4fc0214a10 [clang-tidy] New check cppcoreguidelines-prefer-member-initializer
Finds member initializations in the constructor body which can be placed
into the initialization list instead. This does not only improves the
readability of the code but also affects positively its performance.
Class-member assignments inside a control statement or following the
first control statement are ignored.

Differential Revision: https://reviews.llvm.org/D71199
2020-09-21 14:42:58 +02:00
..
AvoidGotoCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
AvoidGotoCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
AvoidNonConstGlobalVariablesCheck.cpp Remove false positive in AvoidNonConstGlobalVariables. 2020-04-15 14:48:06 -04:00
AvoidNonConstGlobalVariablesCheck.h Add CppCoreGuidelines I.2 "Avoid non-const global variables" check 2020-03-13 10:05:13 -04:00
CMakeLists.txt [clang-tidy] New check cppcoreguidelines-prefer-member-initializer 2020-09-21 14:42:58 +02:00
CppCoreGuidelinesTidyModule.cpp [clang-tidy] New check cppcoreguidelines-prefer-member-initializer 2020-09-21 14:42:58 +02:00
InitVariablesCheck.cpp [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
InitVariablesCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
InterfacesGlobalInitCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
InterfacesGlobalInitCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
MacroUsageCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
MacroUsageCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
NarrowingConversionsCheck.cpp Fix the clang-tidy build after get/isIntegerConstantExpression 2020-07-22 09:38:56 +02:00
NarrowingConversionsCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
NoMallocCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NoMallocCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
OwningMemoryCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
OwningMemoryCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
PreferMemberInitializerCheck.cpp [clang-tidy] New check cppcoreguidelines-prefer-member-initializer 2020-09-21 14:42:58 +02:00
PreferMemberInitializerCheck.h [clang-tidy] New check cppcoreguidelines-prefer-member-initializer 2020-09-21 14:42:58 +02:00
ProBoundsArrayToPointerDecayCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
ProBoundsArrayToPointerDecayCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProBoundsConstantArrayIndexCheck.cpp [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
ProBoundsConstantArrayIndexCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
ProBoundsPointerArithmeticCheck.cpp [NFC] use hasAnyOperatorName and hasAnyOverloadedOperatorName functions in clang-tidy matchers 2020-03-10 00:42:21 +00:00
ProBoundsPointerArithmeticCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeConstCastCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
ProTypeConstCastCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeCstyleCastCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
ProTypeCstyleCastCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeMemberInitCheck.cpp Replaced C++2a with C++20 in clang-tools-extra 2020-06-03 14:54:10 +02:00
ProTypeMemberInitCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeReinterpretCastCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
ProTypeReinterpretCastCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeStaticCastDowncastCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
ProTypeStaticCastDowncastCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeUnionAccessCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
ProTypeUnionAccessCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ProTypeVarargCheck.cpp [clang-tidy] ignore builtin varargs from pro-type-vararg-check 2020-06-04 17:58:23 +01:00
ProTypeVarargCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
SlicingCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
SlicingCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
SpecialMemberFunctionsCheck.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
SpecialMemberFunctionsCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00