clang 24.0.0git
clang::interp::DeclOrExpr Struct Reference

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/DeclOrExpr.h"

Public Member Functions

 DeclOrExpr ()
 DeclOrExpr (std::nullptr_t)
 DeclOrExpr (const Decl *VD)
 DeclOrExpr (const Expr *E)
bool isExpr () const
bool isDecl () const
bool isValueDecl () const
const ExprasExpr () const
const DeclasDecl () const
const ValueDeclasValueDecl () const
const VarDeclasVarDecl () const
const void * getOpaqueValue () const
bool operator== (DeclOrExpr O) const
bool operator!= (DeclOrExpr O) const
 operator bool () const
QualType getType () const

Public Attributes

llvm::PointerUnion< const Decl *, const Expr * > V

Detailed Description

Definition at line 20 of file DeclOrExpr.h.

Constructor & Destructor Documentation

◆ DeclOrExpr() [1/4]

clang::interp::DeclOrExpr::DeclOrExpr ( )
inline

Definition at line 23 of file DeclOrExpr.h.

References clang::nullptr, and V.

Referenced by operator!=(), and operator==().

◆ DeclOrExpr() [2/4]

clang::interp::DeclOrExpr::DeclOrExpr ( std::nullptr_t )
inline

Definition at line 24 of file DeclOrExpr.h.

References clang::nullptr, and V.

◆ DeclOrExpr() [3/4]

clang::interp::DeclOrExpr::DeclOrExpr ( const Decl * VD)
inline

Definition at line 25 of file DeclOrExpr.h.

References V.

◆ DeclOrExpr() [4/4]

clang::interp::DeclOrExpr::DeclOrExpr ( const Expr * E)
inline

Definition at line 26 of file DeclOrExpr.h.

References V.

Member Function Documentation

◆ asDecl()

const Decl * clang::interp::DeclOrExpr::asDecl ( ) const
inline

Definition at line 33 of file DeclOrExpr.h.

References V.

Referenced by asValueDecl(), asVarDecl(), and isValueDecl().

◆ asExpr()

const Expr * clang::interp::DeclOrExpr::asExpr ( ) const
inline

Definition at line 32 of file DeclOrExpr.h.

References V.

Referenced by clang::interp::Program::getOrCreateDummy(), and getType().

◆ asValueDecl()

const ValueDecl * clang::interp::DeclOrExpr::asValueDecl ( ) const
inline

Definition at line 34 of file DeclOrExpr.h.

References asDecl().

Referenced by clang::interp::Program::getOrCreateDummy(), and getType().

◆ asVarDecl()

const VarDecl * clang::interp::DeclOrExpr::asVarDecl ( ) const
inline

Definition at line 37 of file DeclOrExpr.h.

References asDecl().

Referenced by clang::interp::Program::getOrCreateDummy().

◆ getOpaqueValue()

const void * clang::interp::DeclOrExpr::getOpaqueValue ( ) const
inline

Definition at line 41 of file DeclOrExpr.h.

References V.

Referenced by clang::interp::Program::getOrCreateDummy(), and clang::interp::operator<<().

◆ getType()

QualType clang::interp::DeclOrExpr::getType ( ) const
inline

Definition at line 47 of file DeclOrExpr.h.

References asExpr(), asValueDecl(), and clang::Expr::getType().

◆ isDecl()

bool clang::interp::DeclOrExpr::isDecl ( ) const
inline

Definition at line 29 of file DeclOrExpr.h.

References V.

◆ isExpr()

bool clang::interp::DeclOrExpr::isExpr ( ) const
inline

Definition at line 28 of file DeclOrExpr.h.

References V.

◆ isValueDecl()

bool clang::interp::DeclOrExpr::isValueDecl ( ) const
inline

Definition at line 30 of file DeclOrExpr.h.

References asDecl().

◆ operator bool()

clang::interp::DeclOrExpr::operator bool ( ) const
inlineexplicit

Definition at line 45 of file DeclOrExpr.h.

References V.

◆ operator!=()

bool clang::interp::DeclOrExpr::operator!= ( DeclOrExpr O) const
inline

Definition at line 44 of file DeclOrExpr.h.

References DeclOrExpr(), and V.

◆ operator==()

bool clang::interp::DeclOrExpr::operator== ( DeclOrExpr O) const
inline

Definition at line 43 of file DeclOrExpr.h.

References DeclOrExpr(), and V.

Member Data Documentation

◆ V

llvm::PointerUnion<const Decl *, const Expr *> clang::interp::DeclOrExpr::V

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