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

Scope for local variables. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/AST/Interp/ByteCodeExprGen.h"

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

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 >
virtual ~VariableScope ()
 
void add (const Scope::Local &Local, bool IsExtended)
 
virtual void addExtended (const Scope::Local &Local)
 
VariableScopegetParent ()
 

Protected Attributes

Optional< unsigned > Idx
 Index of the scope in the chain. More...
 
- Protected Attributes inherited from clang::interp::VariableScope< Emitter >
ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance. More...
 
VariableScopeParent
 Link to the parent scope. More...
 

Additional Inherited Members

- Protected Member Functions inherited from clang::interp::VariableScope< Emitter >
 VariableScope (ByteCodeExprGen< Emitter > *Ctx)
 

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 33 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ LocalScope()

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

Definition at line 283 of file ByteCodeExprGen.h.

◆ ~LocalScope()

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

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

◆ emitDestruction()

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

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

Definition at line 296 of file ByteCodeExprGen.h.

Member Data Documentation

◆ Idx

template<class Emitter >
Optional<unsigned> clang::interp::LocalScope< Emitter >::Idx
protected

Index of the scope in the chain.

Definition at line 304 of file ByteCodeExprGen.h.


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