clang  20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::interp::VarCreationState Struct Reference

State encapsulating if a the variable creation has been successful, unsuccessful, or no variable has been created at all. More...

#include "/home/runner/work/llvm/llvm/repo/clang/lib/AST/ByteCode/Compiler.h"

Public Member Functions

 VarCreationState ()=default
 
 VarCreationState (bool b)
 
 operator bool () const
 
bool notCreated () const
 

Static Public Member Functions

static VarCreationState NotCreated ()
 

Public Attributes

std::optional< boolS = std::nullopt
 

Detailed Description

State encapsulating if a the variable creation has been successful, unsuccessful, or no variable has been created at all.

Definition at line 91 of file Compiler.h.

Constructor & Destructor Documentation

◆ VarCreationState() [1/2]

clang::interp::VarCreationState::VarCreationState ( )
default

Referenced by NotCreated().

◆ VarCreationState() [2/2]

clang::interp::VarCreationState::VarCreationState ( bool  b)
inline

Definition at line 94 of file Compiler.h.

Member Function Documentation

◆ NotCreated()

static VarCreationState clang::interp::VarCreationState::NotCreated ( )
inlinestatic

Definition at line 95 of file Compiler.h.

References VarCreationState().

Referenced by clang::interp::Compiler< Emitter >::visitVarDecl().

◆ notCreated()

bool clang::interp::VarCreationState::notCreated ( ) const
inline

Definition at line 98 of file Compiler.h.

References S.

◆ operator bool()

clang::interp::VarCreationState::operator bool ( ) const
inline

Definition at line 97 of file Compiler.h.

References S.

Member Data Documentation

◆ S

std::optional<bool> clang::interp::VarCreationState::S = std::nullopt

Definition at line 92 of file Compiler.h.

Referenced by notCreated(), and operator bool().


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