clang 22.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 )

◆ inferPossibleType()

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