clang 24.0.0git
clang::interp::SourceInfo Class Referencefinal

Describes the statement/declaration an opcode was generated from. More...

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

Public Member Functions

 SourceInfo ()
 SourceInfo (const Stmt *E)
 SourceInfo (const Decl *D)
SourceLocation getLoc () const
SourceRange getRange () const
const StmtasStmt () const
const DeclasDecl () const
const ExprasExpr () const
 operator bool () const

Detailed Description

Describes the statement/declaration an opcode was generated from.

Definition at line 77 of file Source.h.

Constructor & Destructor Documentation

◆ SourceInfo() [1/3]

clang::interp::SourceInfo::SourceInfo ( )
inline

Definition at line 79 of file Source.h.

◆ SourceInfo() [2/3]

clang::interp::SourceInfo::SourceInfo ( const Stmt * E)
inline

Definition at line 80 of file Source.h.

◆ SourceInfo() [3/3]

clang::interp::SourceInfo::SourceInfo ( const Decl * D)
inline

Definition at line 81 of file Source.h.

Member Function Documentation

◆ asDecl()

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

Definition at line 89 of file Source.h.

Referenced by getLoc(), and getRange().

◆ asExpr()

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

◆ asStmt()

const Stmt * clang::interp::SourceInfo::asStmt ( ) const
inline

Definition at line 86 of file Source.h.

Referenced by asExpr(), getLoc(), and getRange().

◆ getLoc()

◆ getRange()

SourceRange SourceInfo::getRange ( ) const

◆ operator bool()

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

Definition at line 94 of file Source.h.


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