clang-tools 18.0.0git
|
Functions | |
std::optional< bool > | isExpensiveToCopy (QualType Type, const ASTContext &Context) |
Returns true if Type is expensive to copy. | |
bool | recordIsTriviallyDefaultConstructible (const RecordDecl &RecordDecl, const ASTContext &Context) |
Returns true if RecordDecl is trivially default constructible. | |
bool | isTriviallyDefaultConstructible (QualType Type, const ASTContext &Context) |
Returns true if Type is trivially default constructible. | |
bool | isTriviallyDestructible (QualType Type) |
Returns true if Type is trivially destructible. | |
bool | hasNonTrivialMoveConstructor (QualType Type) |
Returns true if Type has a non-trivial move constructor. | |
bool | hasNonTrivialMoveAssignment (QualType Type) |
Return true if Type has a non-trivial move assignment operator. | |
bool clang::tidy::utils::type_traits::hasNonTrivialMoveAssignment | ( | QualType | Type | ) |
Return true if Type
has a non-trivial move assignment operator.
Definition at line 156 of file TypeTraits.cpp.
References Type.
Referenced by clang::tidy::performance::UnnecessaryValueParamCheck::check().
bool clang::tidy::utils::type_traits::hasNonTrivialMoveConstructor | ( | QualType | Type | ) |
Returns true if Type
has a non-trivial move constructor.
Definition at line 150 of file TypeTraits.cpp.
References Type.
Referenced by clang::tidy::performance::UnnecessaryValueParamCheck::check().
std::optional< bool > clang::tidy::utils::type_traits::isExpensiveToCopy | ( | QualType | Type, |
const ASTContext & | Context | ||
) |
Returns true
if Type
is expensive to copy.
Definition at line 39 of file TypeTraits.cpp.
References Type.
Referenced by clang::tidy::matchers::AST_MATCHER().
bool clang::tidy::utils::type_traits::isTriviallyDefaultConstructible | ( | QualType | Type, |
const ASTContext & | Context | ||
) |
Returns true
if Type
is trivially default constructible.
Definition at line 90 of file TypeTraits.cpp.
References isTriviallyDefaultConstructible(), recordIsTriviallyDefaultConstructible(), and Type.
Referenced by clang::tidy::modernize::MakeSmartPtrCheck::check(), isTriviallyDefaultConstructible(), and recordIsTriviallyDefaultConstructible().
bool clang::tidy::utils::type_traits::isTriviallyDestructible | ( | QualType | Type | ) |
Returns true
if Type
is trivially destructible.
Definition at line 137 of file TypeTraits.cpp.
References Type.
Referenced by clang::tidy::matchers::AST_MATCHER().
bool clang::tidy::utils::type_traits::recordIsTriviallyDefaultConstructible | ( | const RecordDecl & | RecordDecl, |
const ASTContext & | Context | ||
) |
Returns true
if RecordDecl
is trivially default constructible.
Definition at line 49 of file TypeTraits.cpp.
References Field, and isTriviallyDefaultConstructible().
Referenced by clang::tidy::matchers::AST_MATCHER(), and isTriviallyDefaultConstructible().