|
clang 22.0.0git
|
A scope which attempts to handle some, possibly all, types of exceptions. More...
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenCleanup.h"
Classes | |
| struct | Handler |
Public Types | |
| using | iterator = const Handler * |
| Public Types inherited from clang::CIRGen::EHScope | |
| enum | Kind { Cleanup , Catch , Terminate , Filter } |
Public Member Functions | |
| EHCatchScope (unsigned numHandlers, EHScopeStack::stable_iterator enclosingEHScope) | |
| unsigned | getNumHandlers () const |
| void | setHandler (unsigned i, CatchTypeInfo type, mlir::Region *region, const CXXCatchStmt *stmt) |
| const Handler & | getHandler (unsigned i) const |
| void | clearHandlerBlocks () |
| iterator | begin () const |
| iterator | end () const |
| Public Member Functions inherited from clang::CIRGen::EHScope | |
| EHScope (Kind kind, EHScopeStack::stable_iterator enclosingEHScope) | |
| Kind | getKind () const |
| bool | mayThrow () const |
| void | setMayThrow (bool mayThrow) |
| EHScopeStack::stable_iterator | getEnclosingEHScope () const |
Static Public Member Functions | |
| static size_t | getSizeForNumHandlers (unsigned n) |
| static bool | classof (const EHScope *scope) |
Friends | |
| class | EHScopeStack |
Additional Inherited Members | |
| Protected Attributes inherited from clang::CIRGen::EHScope | |
| union { | |
| CommonBitFields commonBits | |
| CatchBitFields catchBits | |
| CleanupBitFields cleanupBits | |
| }; | |
A scope which attempts to handle some, possibly all, types of exceptions.
Objective C @finally blocks are represented using a cleanup scope after the catch scope.
Definition at line 114 of file CIRGenCleanup.h.
| using clang::CIRGen::EHCatchScope::iterator = const Handler * |
Definition at line 179 of file CIRGenCleanup.h.
|
inline |
Definition at line 148 of file CIRGenCleanup.h.
References clang::CIRGen::EHScope::Catch, clang::CIRGen::EHScope::catchBits, and clang::CIRGen::EHScope::EHScope().
Referenced by getSizeForNumHandlers().
|
inline |
Definition at line 180 of file CIRGenCleanup.h.
Referenced by clang::CIRGen::CIRGenFunction::exitCXXTryStmt(), and clang::CIRGen::CIRGenFunction::populateCatchHandlers().
Definition at line 183 of file CIRGenCleanup.h.
References clang::CIRGen::EHScope::Catch, clang::CIRGen::EHScope::EHScope(), and clang::CIRGen::EHScope::getKind().
|
inline |
Definition at line 175 of file CIRGenCleanup.h.
Referenced by clang::CIRGen::CIRGenFunction::exitCXXTryStmt().
|
inline |
Definition at line 181 of file CIRGenCleanup.h.
References getNumHandlers().
Referenced by clang::CIRGen::CIRGenFunction::populateCatchHandlers().
Definition at line 166 of file CIRGenCleanup.h.
References getNumHandlers().
Referenced by clang::CIRGen::CIRGenFunction::populateEHCatchRegions().
|
inline |
Definition at line 155 of file CIRGenCleanup.h.
References clang::CIRGen::EHScope::catchBits.
Referenced by end(), clang::CIRGen::CIRGenFunction::exitCXXTryStmt(), getHandler(), clang::CIRGen::EHScopeStack::popCatch(), clang::CIRGen::CIRGenFunction::populateEHCatchRegions(), and setHandler().
Definition at line 144 of file CIRGenCleanup.h.
References EHCatchScope().
Referenced by clang::CIRGen::EHScopeStack::iterator::operator++(), and clang::CIRGen::EHScopeStack::popCatch().
|
inline |
Definition at line 157 of file CIRGenCleanup.h.
References getNumHandlers(), clang::CIRGen::EHCatchScope::Handler::region, clang::ast_matchers::stmt, clang::CIRGen::EHCatchScope::Handler::stmt, clang::ast_matchers::type, and clang::CIRGen::EHCatchScope::Handler::type.
Referenced by clang::CIRGen::CIRGenFunction::enterCXXTryStmt().
|
friend |
Definition at line 135 of file CIRGenCleanup.h.
References EHScopeStack.
Referenced by EHScopeStack.