clang-tools  14.0.0git
Functions
clang::tidy::utils::type_traits Namespace Reference

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 isTriviallyDestructible (QualType Type)
 Returns true if Type is trivially destructible. 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...
 

Function Documentation

◆ hasNonTrivialMoveAssignment()

bool clang::tidy::utils::type_traits::hasNonTrivialMoveAssignment ( QualType  Type)

Return true if Type has a non-trivial move assignment operator.

Definition at line 158 of file TypeTraits.cpp.

References Type.

◆ hasNonTrivialMoveConstructor()

bool clang::tidy::utils::type_traits::hasNonTrivialMoveConstructor ( QualType  Type)

Returns true if Type has a non-trivial move constructor.

Definition at line 152 of file TypeTraits.cpp.

References Type.

◆ isExpensiveToCopy()

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 41 of file TypeTraits.cpp.

Referenced by clang::tidy::matchers::AST_MATCHER().

◆ isTriviallyDefaultConstructible()

bool clang::tidy::utils::type_traits::isTriviallyDefaultConstructible ( QualType  Type,
const ASTContext &  Context 
)

Returns true if Type is trivially default constructible.

Definition at line 92 of file TypeTraits.cpp.

◆ isTriviallyDestructible()

bool clang::tidy::utils::type_traits::isTriviallyDestructible ( QualType  Type)

Returns true if Type is trivially destructible.

Definition at line 139 of file TypeTraits.cpp.

References Type.

Referenced by clang::tidy::matchers::AST_MATCHER().

◆ recordIsTriviallyDefaultConstructible()

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.

Referenced by clang::tidy::matchers::AST_MATCHER().