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

Generic 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
[legend]

Public Member Functions

 LocalScope (ByteCodeExprGen< Emitter > *Ctx)
 
 ~LocalScope () override
 Emit a Destroy op for this scope.
 
void emitDestruction () override
 Overriden to support explicit destruction.
 
void addLocal (const Scope::Local &Local) override
 
void emitDestructors () 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 ()
 
virtual void emitDestructors ()
 
VariableScopegetParent () const
 

Public Attributes

std::optional< unsignedIdx
 Index of the scope in the chain.
 

Additional Inherited Members

- Protected Attributes inherited from clang::interp::VariableScope< Emitter >
ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance.
 
VariableScopeParent
 Link to the parent scope.
 

Detailed Description

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

Generic scope for local variables.

Definition at line 361 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ LocalScope()

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

Definition at line 363 of file ByteCodeExprGen.h.

◆ ~LocalScope()

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

Emit a Destroy op for this scope.

Definition at line 366 of file ByteCodeExprGen.h.

Member Function Documentation

◆ addLocal()

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

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

Definition at line 381 of file ByteCodeExprGen.h.

◆ emitDestruction()

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

Overriden to support explicit destruction.

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

Definition at line 373 of file ByteCodeExprGen.h.

◆ emitDestructors()

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

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

Definition at line 390 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 404 of file ByteCodeExprGen.h.


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