clang 17.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::interp::LocalScope< Emitter > Class Template Reference

Scope for local variables. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Interp/ByteCodeExprGen.h"

Inheritance diagram for clang::interp::LocalScope< Emitter >:
Inheritance graph
Collaboration diagram for clang::interp::LocalScope< Emitter >:
Collaboration graph

Public Member Functions

 LocalScope (ByteCodeExprGen< Emitter > *Ctx)
 ~LocalScope () override
void addLocal (const Scope::Local &Local) override
void emitDestruction () override
- Public Member Functions inherited from clang::interp::VariableScope< Emitter >
 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 ()
VariableScopegetParent () const

Protected Attributes

std::optional< unsignedIdx
 Index of the scope in the chain.
- Protected Attributes inherited from clang::interp::VariableScope< Emitter >
ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance.
 Link to the parent scope.

Detailed Description

template<class Emitter>
class clang::interp::LocalScope< Emitter >

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.

Constructor & Destructor Documentation

◆ LocalScope()

template<class Emitter >
clang::interp::LocalScope< Emitter >::LocalScope ( ByteCodeExprGen< Emitter > *  Ctx)

Definition at line 316 of file ByteCodeExprGen.h.

◆ ~LocalScope()

template<class Emitter >
clang::interp::LocalScope< Emitter >::~LocalScope ( )

Definition at line 318 of file ByteCodeExprGen.h.

Member Function Documentation

◆ addLocal()

template<class Emitter >
void clang::interp::LocalScope< Emitter >::addLocal ( const Scope::Local Local)

◆ emitDestruction()

template<class Emitter >
void clang::interp::LocalScope< Emitter >::emitDestruction ( )

Reimplemented from clang::interp::VariableScope< Emitter >.

Definition at line 329 of file ByteCodeExprGen.h.

Member Data Documentation

◆ Idx

template<class Emitter >
std::optional<unsigned> clang::interp::LocalScope< Emitter >::Idx

Index of the scope in the chain.

Definition at line 337 of file ByteCodeExprGen.h.

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