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

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

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

Public Member Functions

 LexicalScope (CodeGenFunction &CGF, SourceRange Range)
 Enter a new cleanup scope.
void addLabel (const LabelDecl *label)
 ~LexicalScope ()
 Exit this cleanup scope, emitting any accumulated cleanups.
void ForceCleanup ()
 Force the emission of cleanups now, instead of waiting until this object is destroyed.
bool hasLabels () const
void rescopeLabels ()
 Change the cleanup scope of the labels in this lexical scope to match the scope of the enclosing context.
Public Member Functions inherited from clang::CodeGen::CodeGenFunction::RunCleanupsScope
 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.

Additional Inherited Members

Protected Attributes inherited from clang::CodeGen::CodeGenFunction::RunCleanupsScope
bool PerformCleanup
CodeGenFunctionCGF

Detailed Description

Definition at line 1084 of file CodeGenFunction.h.

Constructor & Destructor Documentation

◆ LexicalScope()

CodeGenFunction::LexicalScope::LexicalScope ( CodeGenFunction & CGF,
SourceRange Range )
explicit

Enter a new cleanup scope.

Definition at line 6444 of file CGDebugInfo.cpp.

References clang::CodeGen::CodeGenFunction::RunCleanupsScope::CGF.

◆ ~LexicalScope()

CodeGenFunction::LexicalScope::~LexicalScope ( )

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 6452 of file CGDebugInfo.cpp.

References clang::CodeGen::CodeGenFunction::RunCleanupsScope::CGF, ForceCleanup(), and clang::CodeGen::CodeGenFunction::RunCleanupsScope::PerformCleanup.

Member Function Documentation

◆ addLabel()

void clang::CodeGen::CodeGenFunction::LexicalScope::addLabel ( const LabelDecl * label)
inline

◆ ForceCleanup()

◆ hasLabels()

bool clang::CodeGen::CodeGenFunction::LexicalScope::hasLabels ( ) const
inline

Definition at line 1115 of file CodeGenFunction.h.

◆ rescopeLabels()


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