clang  19.0.0git
Public Member Functions | List of all members
clang::interp::BlockScope< Emitter > Class Template Referencefinal

Scope for storage declared in a compound statement. More...

#include "/home/runner/work/llvm/llvm/repo/clang/lib/AST/Interp/ByteCodeExprGen.h"

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

Public Member Functions

 BlockScope (ByteCodeExprGen< Emitter > *Ctx)
 
void addExtended (const Scope::Local &Local) override
 
- Public Member Functions inherited from clang::interp::AutoScope< Emitter >
 AutoScope (ByteCodeExprGen< Emitter > *Ctx)
 
- Public Member Functions inherited from clang::interp::LocalScope< Emitter >
 LocalScope (ByteCodeExprGen< Emitter > *Ctx)
 
 ~LocalScope () override
 Emit a Destroy op for this scope. More...
 
void emitDestruction () override
 Overriden to support explicit destruction. More...
 
bool destroyLocals ()
 Explicit destruction of local variables. More...
 
void addLocal (const Scope::Local &Local) override
 
bool emitDestructors () override
 
void removeStoredOpaqueValues ()
 
void removeIfStoredOpaqueValue (const Scope::Local &Local)
 
- Public Member Functions inherited from clang::interp::VariableScope< Emitter >
 VariableScope (ByteCodeExprGen< Emitter > *Ctx, const ValueDecl *VD)
 
virtual ~VariableScope ()
 
void add (const Scope::Local &Local, bool IsExtended)
 
void addExtended (const Scope::Local &Local, const ValueDecl *ExtendingDecl)
 
VariableScopegetParent () const
 

Additional Inherited Members

- Public Attributes inherited from clang::interp::LocalScope< Emitter >
std::optional< unsignedIdx
 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...
 
const ValueDeclValDecl = nullptr
 

Detailed Description

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

Scope for storage declared in a compound statement.

Definition at line 492 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ BlockScope()

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

Definition at line 494 of file ByteCodeExprGen.h.

Member Function Documentation

◆ addExtended()

template<class Emitter >
void clang::interp::BlockScope< Emitter >::addExtended ( const Scope::Local Local)
inlineoverridevirtual

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

Definition at line 496 of file ByteCodeExprGen.h.


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