clang-tools 19.0.0git
Namespaces | Functions
TypeTraits.cpp File Reference
#include "TypeTraits.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 
namespace  clang::tidy::utils
 
namespace  clang::tidy::utils::type_traits
 

Functions

std::optional< bool > clang::tidy::utils::type_traits::isExpensiveToCopy (QualType Type, const ASTContext &Context)
 Returns true if Type is expensive to copy.
 
bool clang::tidy::utils::type_traits::recordIsTriviallyDefaultConstructible (const RecordDecl &RecordDecl, const ASTContext &Context)
 Returns true if RecordDecl is trivially default constructible.
 
bool clang::tidy::utils::type_traits::isTriviallyDefaultConstructible (QualType Type, const ASTContext &Context)
 Returns true if Type is trivially default constructible.
 
bool clang::tidy::utils::type_traits::isTriviallyDestructible (QualType Type)
 Returns true if Type is trivially destructible.
 
bool clang::tidy::utils::type_traits::hasNonTrivialMoveConstructor (QualType Type)
 Returns true if Type has a non-trivial move constructor.
 
bool clang::tidy::utils::type_traits::hasNonTrivialMoveAssignment (QualType Type)
 Return true if Type has a non-trivial move assignment operator.