clang 22.0.0git
InferAlloc.h File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h"
#include "llvm/Support/AllocToken.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::infer_alloc

Functions

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