clang 22.0.0git
clang::CodeGen::CodeGenFunction::RunCleanupsScope Class Reference

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CodeGenFunction.h"

Inheritance diagram for clang::CodeGen::CodeGenFunction::RunCleanupsScope:
[legend]

Public Member Functions

 RunCleanupsScope (CodeGenFunction &CGF)
 Enter a new cleanup scope.
 ~RunCleanupsScope ()
 Exit this cleanup scope, emitting any accumulated cleanups.
bool requiresCleanups () const
 Determine whether this scope requires any cleanups.
void ForceCleanup (std::initializer_list< llvm::Value ** > ValuesToReload={})
 Force the emission of cleanups now, instead of waiting until this object is destroyed.

Protected Attributes

bool PerformCleanup
CodeGenFunctionCGF

Detailed Description

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.

Definition at line 1022 of file CodeGenFunction.h.

Constructor & Destructor Documentation

◆ RunCleanupsScope()

clang::CodeGen::CodeGenFunction::RunCleanupsScope::RunCleanupsScope ( CodeGenFunction & CGF)
inlineexplicit

Enter a new cleanup scope.

Definition at line 1040 of file CodeGenFunction.h.

References CGF, PerformCleanup, and true.

◆ ~RunCleanupsScope()

clang::CodeGen::CodeGenFunction::RunCleanupsScope::~RunCleanupsScope ( )
inline

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 1052 of file CodeGenFunction.h.

References ForceCleanup(), and PerformCleanup.

Member Function Documentation

◆ ForceCleanup()

void clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup ( std::initializer_list< llvm::Value ** > ValuesToReload = {})
inline

◆ requiresCleanups()

Member Data Documentation

◆ CGF

◆ PerformCleanup


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