clang  19.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/runner/work/llvm/llvm/repo/clang/lib/AST/Interp/ByteCodeExprGen.h"

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

Public Member Functions

 VariableScope (ByteCodeExprGen< Emitter > *Ctx, const ValueDecl *VD)
 
virtual ~VariableScope ()
 
void add (const Scope::Local &Local, bool IsExtended)
 
virtual void addLocal (const Scope::Local &Local)
 
virtual void addExtended (const Scope::Local &Local)
 
void addExtended (const Scope::Local &Local, const ValueDecl *ExtendingDecl)
 
virtual void emitDestruction ()
 
virtual bool emitDestructors ()
 
VariableScopegetParent () const
 

Protected Attributes

ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance. More...
 
VariableScopeParent
 Link to the parent scope. More...
 
const ValueDeclValDecl = nullptr
 

Detailed Description

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

Scope chain managing the variable lifetimes.

Definition at line 330 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ VariableScope()

template<class Emitter >
clang::interp::VariableScope< Emitter >::VariableScope ( ByteCodeExprGen< Emitter > *  Ctx,
const ValueDecl VD 
)
inline

◆ ~VariableScope()

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

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

◆ addExtended() [1/2]

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

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

Definition at line 351 of file ByteCodeExprGen.h.

References Parent.

◆ addExtended() [2/2]

template<class Emitter >
void clang::interp::VariableScope< Emitter >::addExtended ( const Scope::Local Local,
const ValueDecl ExtendingDecl 
)
inline

Definition at line 356 of file ByteCodeExprGen.h.

References P.

◆ 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 346 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 374 of file ByteCodeExprGen.h.

◆ emitDestructors()

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

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

Definition at line 375 of file ByteCodeExprGen.h.

◆ getParent()

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

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

◆ Parent

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

Link to the parent scope.

Definition at line 382 of file ByteCodeExprGen.h.

◆ ValDecl

template<class Emitter >
const ValueDecl* clang::interp::VariableScope< Emitter >::ValDecl = nullptr
protected

Definition at line 383 of file ByteCodeExprGen.h.


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