clang 23.0.0git
clang::CIRGen::CIRGenFunction::PendingCleanupEntry Struct Reference

A cleanup entry that will be promoted onto the EH scope stack at a later point. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunction.h"

Public Attributes

CleanupKind kind
Address addr
QualType type
Destroyerdestroyer
Address activeFlag = Address::invalid()

Detailed Description

A cleanup entry that will be promoted onto the EH scope stack at a later point.

Used by both the lifetime-extended cleanup stack (promoted when the enclosing scope exits) and the deferred conditional cleanup stack (promoted at the enclosing full-expression level).

Currently only DestroyObject cleanups use this. When other cleanup types are needed (e.g., CallLifetimeEnd), this struct can be extended with a std::variant of cleanup data types.

Definition at line 105 of file CIRGenFunction.h.

Member Data Documentation

◆ activeFlag

Address clang::CIRGen::CIRGenFunction::PendingCleanupEntry::activeFlag = Address::invalid()

◆ addr

Address clang::CIRGen::CIRGenFunction::PendingCleanupEntry::addr

◆ destroyer

Destroyer* clang::CIRGen::CIRGenFunction::PendingCleanupEntry::destroyer

◆ kind

CleanupKind clang::CIRGen::CIRGenFunction::PendingCleanupEntry::kind

◆ type

QualType clang::CIRGen::CIRGenFunction::PendingCleanupEntry::type

The documentation for this struct was generated from the following file: