clang 22.0.0git
clang::interp::DeclScope< Emitter > Class Template Referencefinal

Scope used to handle temporaries in toplevel variable declarations. More...

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

Public Member Functions

 DeclScope (Compiler< Emitter > *Ctx, const ValueDecl *VD)
 ~DeclScope ()
Public Member Functions inherited from clang::interp::LocalScope< Emitter >
 LocalScope (Compiler< Emitter > *Ctx, ScopeKind Kind=ScopeKind::Block)
 LocalScope (Compiler< Emitter > *Ctx, const ValueDecl *VD)
 ~LocalScope () override
 Emit a Destroy op for this scope.
void emitDestruction () override
 Overriden to support explicit destruction.
bool destroyLocals (const Expr *E=nullptr) override
 Explicit destruction of local variables.
void addLocal (const Scope::Local &Local) override
bool emitDestructors (const Expr *E=nullptr) override
void removeStoredOpaqueValues ()
void removeIfStoredOpaqueValue (const Scope::Local &Local)
Public Member Functions inherited from clang::interp::VariableScope< Emitter >
 VariableScope (Compiler< Emitter > *Ctx, const ValueDecl *VD, ScopeKind Kind=ScopeKind::Block)
virtual ~VariableScope ()
void addExtended (const Scope::Local &Local, const ValueDecl *ExtendingDecl)
void addForScopeKind (const Scope::Local &Local, ScopeKind Kind)
 Like addExtended, but adds to the nearest scope of the given kind.
VariableScopegetParent () const
ScopeKind getKind () const

Additional Inherited Members

Public Attributes inherited from clang::interp::LocalScope< Emitter >
UnsignedOrNone Idx = std::nullopt
 Index of the scope in the chain.
Protected Attributes inherited from clang::interp::VariableScope< Emitter >
Compiler< Emitter > * Ctx
 Compiler instance.
VariableScopeParent
 Link to the parent scope.
const ValueDeclValDecl = nullptr
ScopeKind Kind

Detailed Description

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

Scope used to handle temporaries in toplevel variable declarations.

Definition at line 39 of file Compiler.cpp.

Constructor & Destructor Documentation

◆ DeclScope()

◆ ~DeclScope()

template<class Emitter>
clang::interp::DeclScope< Emitter >::~DeclScope ( )
inline

Definition at line 48 of file Compiler.cpp.

References clang::interp::VariableScope< Emitter >::Ctx.


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