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

Expression scope which tracks potentially lifetime extended temporaries which are hoisted to the parent scope on exit. More...

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

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

Public Member Functions

 ExprScope (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.
 
void emitDestruction () override
 Overriden to support explicit destruction.
 
bool destroyLocals ()
 Explicit destruction of local variables.
 
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)
 
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 ()
 
virtual bool emitDestructors ()
 
VariableScopegetParent () const
 

Additional Inherited Members

- Public Attributes inherited from clang::interp::LocalScope< Emitter >
std::optional< unsignedIdx
 Index of the scope in the chain.
 
- Protected Attributes inherited from clang::interp::VariableScope< Emitter >
ByteCodeExprGen< Emitter > * Ctx
 ByteCodeExprGen instance.
 
VariableScopeParent
 Link to the parent scope.
 

Detailed Description

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

Expression scope which tracks potentially lifetime extended temporaries which are hoisted to the parent scope on exit.

Definition at line 476 of file ByteCodeExprGen.h.

Constructor & Destructor Documentation

◆ ExprScope()

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

Definition at line 478 of file ByteCodeExprGen.h.

Member Function Documentation

◆ addExtended()

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

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

Definition at line 480 of file ByteCodeExprGen.h.

References Parent.


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