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

Scope chain managing the variable lifetimes. More...

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

Inheritance diagram for clang::interp::VariableScope< Emitter >:
Inheritance graph
[legend]
Collaboration diagram for clang::interp::VariableScope< Emitter >:
Collaboration graph
[legend]

Public Member Functions

 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

ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance.
 
VariableScopeParent
 Link to the parent scope.
 

Detailed Description

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

Scope chain managing the variable lifetimes.

Definition at line 273 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ VariableScope()

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

◆ ~VariableScope()

template<class Emitter >
virtual clang::interp::VariableScope< Emitter >::~VariableScope ( )
inlinevirtual

Definition at line 280 of file ByteCodeExprGen.h.

References Parent.

Member Function Documentation

◆ add()

template<class Emitter >
void clang::interp::VariableScope< Emitter >::add ( const Scope::Local Local,
bool  IsExtended 
)
inline

Definition at line 282 of file ByteCodeExprGen.h.

◆ addExtended()

template<class Emitter >
virtual void clang::interp::VariableScope< Emitter >::addExtended ( const Scope::Local Local)
inlinevirtual

◆ addLocal()

template<class Emitter >
virtual void clang::interp::VariableScope< Emitter >::addLocal ( const Scope::Local Local)
inlinevirtual

Reimplemented in clang::interp::LocalScope< Emitter >.

Definition at line 289 of file ByteCodeExprGen.h.

References Parent.

◆ emitDestruction()

template<class Emitter >
virtual void clang::interp::VariableScope< Emitter >::emitDestruction ( )
inlinevirtual

Reimplemented in clang::interp::LocalScope< Emitter >.

Definition at line 299 of file ByteCodeExprGen.h.

◆ getParent()

template<class Emitter >
VariableScope * clang::interp::VariableScope< Emitter >::getParent ( ) const
inline

Definition at line 301 of file ByteCodeExprGen.h.

References Parent.

Member Data Documentation

◆ Ctx

template<class Emitter >
ByteCodeExprGen<Emitter>* clang::interp::VariableScope< Emitter >::Ctx
protected

ByteCodeExprGen instance.

Definition at line 305 of file ByteCodeExprGen.h.

◆ Parent

template<class Emitter >
VariableScope* clang::interp::VariableScope< Emitter >::Parent
protected

Link to the parent scope.

Definition at line 307 of file ByteCodeExprGen.h.


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