clang 24.0.0git
clang::infer_alloc Namespace Reference

Functions

QualType inferPossibleType (const CallExpr *E, const ASTContext &Ctx, const CastExpr *CastE)
 Infer the possible allocated type from an allocation call expression.
std::optional< llvm::AllocTokenMetadata > getAllocTokenMetadata (QualType T, const ASTContext &Ctx)
 Get the information required for construction of an allocation token ID.

Function Documentation

◆ getAllocTokenMetadata()

std::optional< llvm::AllocTokenMetadata > clang::infer_alloc::getAllocTokenMetadata ( QualType T,
const ASTContext & Ctx )

Get the information required for construction of an allocation token ID.

Definition at line 189 of file InferAlloc.cpp.

References clang::ASTContext::getLangOpts(), clang::PrintingPolicy::SuppressTagKeyword, clang::T, and typeContainsPointer().

Referenced by clang::CodeGen::CodeGenFunction::buildAllocToken(), and clang::interp::interp__builtin_infer_alloc_token().

◆ inferPossibleType()

QualType clang::infer_alloc::inferPossibleType ( const CallExpr * E,
const ASTContext & Ctx,
const CastExpr * CastE )