clang-tools
3.9.0
|
Functions | |
llvm::Optional< bool > | isExpensiveToCopy (QualType Type, const ASTContext &Context) |
Returns true if Type is expensive to copy. More... | |
bool | recordIsTriviallyDefaultConstructible (const RecordDecl &RecordDecl, const ASTContext &Context) |
Returns true if RecordDecl is trivially default constructible. More... | |
bool | isTriviallyDefaultConstructible (QualType Type, const ASTContext &Context) |
Returns true if Type is trivially default constructible. More... | |
bool | hasNonTrivialMoveConstructor (QualType Type) |
Returns true if Type has a non-trivial move constructor. More... | |
bool | hasNonTrivialMoveAssignment (QualType Type) |
Return true if Type has a non-trivial move assignment operator. More... | |
bool clang::tidy::utils::type_traits::hasNonTrivialMoveAssignment | ( | QualType | Type | ) |
Return true if Type
has a non-trivial move assignment operator.
Definition at line 133 of file TypeTraits.cpp.
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 127 of file TypeTraits.cpp.
Referenced by clang::tidy::performance::UnnecessaryValueParamCheck::check().
llvm::Optional< bool > clang::tidy::utils::type_traits::isExpensiveToCopy | ( | QualType | Type, |
const ASTContext & | Context | ||
) |
Returns true
if Type
is expensive to copy.
Definition at line 42 of file TypeTraits.cpp.
Referenced by clang::tidy::matchers::AST_MATCHER(), clang::tidy::performance::UnnecessaryValueParamCheck::registerMatchers(), clang::tidy::misc::MoveConstructorInitCheck::registerMatchers(), and clang::tidy::performance::UnnecessaryCopyInitialization::registerMatchers().
bool clang::tidy::utils::type_traits::isTriviallyDefaultConstructible | ( | QualType | Type, |
const ASTContext & | Context | ||
) |
Returns true
if Type
is trivially default constructible.
Definition at line 80 of file TypeTraits.cpp.
References Context, and recordIsTriviallyDefaultConstructible().
Referenced by recordIsTriviallyDefaultConstructible(), and clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck::registerMatchers().
bool clang::tidy::utils::type_traits::recordIsTriviallyDefaultConstructible | ( | const RecordDecl & | RecordDecl, |
const ASTContext & | Context | ||
) |
Returns true
if RecordDecl
is trivially default constructible.
Definition at line 51 of file TypeTraits.cpp.
References Context, and isTriviallyDefaultConstructible().
Referenced by clang::tidy::matchers::AST_MATCHER(), and isTriviallyDefaultConstructible().