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

Scope that deactivates all enclosed deferred cleanups on exit. More...

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

Public Member Functions

 CleanupDeactivationScope (CIRGenFunction &cgf)
void forceDeactivate ()
 ~CleanupDeactivationScope ()

Public Attributes

CIRGenFunctioncgf
size_t oldDeactivateCleanupStackSize
bool deactivated = false

Detailed Description

Scope that deactivates all enclosed deferred cleanups on exit.

Mirrors CodeGenFunction::CleanupDeactivationScope in classic codegen.

Definition at line 130 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ CleanupDeactivationScope()

clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::CleanupDeactivationScope ( CIRGenFunction & cgf)
inline

◆ ~CleanupDeactivationScope()

clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::~CleanupDeactivationScope ( )
inline

Definition at line 151 of file CIRGenFunction.h.

References deactivated, and forceDeactivate().

Member Function Documentation

◆ forceDeactivate()

void clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::forceDeactivate ( )
inline

Definition at line 139 of file CIRGenFunction.h.

References cgf, cleanup(), deactivated, and oldDeactivateCleanupStackSize.

Referenced by ~CleanupDeactivationScope().

Member Data Documentation

◆ cgf

CIRGenFunction& clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::cgf

Definition at line 131 of file CIRGenFunction.h.

Referenced by CleanupDeactivationScope(), and forceDeactivate().

◆ deactivated

bool clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::deactivated = false

Definition at line 133 of file CIRGenFunction.h.

Referenced by forceDeactivate(), and ~CleanupDeactivationScope().

◆ oldDeactivateCleanupStackSize

size_t clang::CIRGen::CIRGenFunction::CleanupDeactivationScope::oldDeactivateCleanupStackSize

Definition at line 132 of file CIRGenFunction.h.

Referenced by CleanupDeactivationScope(), and forceDeactivate().


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