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

Methods

LocalScope<Emitter>(ByteCodeExprGen<Emitter>* Ctx)

Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:282

Parameters

ByteCodeExprGen<Emitter>* Ctx

void addLocal(const Scope::Local& Local)

Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:286

Parameters

const Scope::Local& Local

void emitDestruction()

Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:295

~LocalScope<Emitter>()

Declared at: clang/lib/AST/Interp/ByteCodeExprGen.h:284