class LocalScope
Declaration
template <class Emitter>
class LocalScope { /* full declaration omitted */ };
Description
Scope for local variables. When the scope is destroyed, instructions are emitted to tear down all variables declared in this scope.
Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:280
Templates
- Emitter
Member Variables
- protected Optional<unsigned int> Idx
- Index of the scope in the chain.
Method Overview
- public LocalScope<Emitter>(ByteCodeExprGen<Emitter> * Ctx)
- public void addLocal(const Scope::Local & Local)
- public void emitDestruction()
- public ~LocalScope<Emitter>()
Methods
¶LocalScope<Emitter>(ByteCodeExprGen<Emitter>* Ctx)
LocalScope<Emitter>(ByteCodeExprGen<Emitter>* Ctx)
Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:282
Parameters
- ByteCodeExprGen<Emitter>* Ctx
¶void addLocal(const Scope::Local& Local)
void addLocal(const Scope::Local& Local)
Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:286
Parameters
- const Scope::Local& Local
¶void emitDestruction()
void emitDestruction()
Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:295
¶~LocalScope<Emitter>()
~LocalScope<Emitter>()
Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:284