clang 17.0.0git
|
Scope for local variables. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Interp/ByteCodeExprGen.h"
Public Member Functions | |
LocalScope (ByteCodeExprGen< Emitter > *Ctx) | |
~LocalScope () override | |
void | addLocal (const Scope::Local &Local) override |
void | emitDestruction () override |
![]() | |
VariableScope (ByteCodeExprGen< Emitter > *Ctx) | |
virtual | ~VariableScope () |
void | add (const Scope::Local &Local, bool IsExtended) |
virtual void | addLocal (const Scope::Local &Local) |
virtual void | addExtended (const Scope::Local &Local) |
virtual void | emitDestruction () |
VariableScope * | getParent () const |
Protected Attributes | |
std::optional< unsigned > | Idx |
Index of the scope in the chain. | |
![]() | |
ByteCodeExprGen< Emitter > * | Ctx |
ByteCodeExprGen instance. | |
VariableScope * | Parent |
Link to the parent scope. | |
Scope for local variables.
When the scope is destroyed, instructions are emitted to tear down all variables declared in this scope.
Definition at line 314 of file ByteCodeExprGen.h.
|
inline |
Definition at line 316 of file ByteCodeExprGen.h.
|
inlineoverride |
Definition at line 318 of file ByteCodeExprGen.h.
|
inlineoverridevirtual |
Reimplemented from clang::interp::VariableScope< Emitter >.
Definition at line 320 of file ByteCodeExprGen.h.
Referenced by clang::interp::DeclScope< Emitter >::addExtended().
|
inlineoverridevirtual |
Reimplemented from clang::interp::VariableScope< Emitter >.
Definition at line 329 of file ByteCodeExprGen.h.
|
protected |
Index of the scope in the chain.
Definition at line 337 of file ByteCodeExprGen.h.