clang 22.0.0git
clang::interp::SourceInfo Class Referencefinal

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

#include "/home/buildbot/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 73 of file Source.h.

Constructor & Destructor Documentation

◆ SourceInfo() [1/3]

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

Definition at line 75 of file Source.h.

◆ SourceInfo() [2/3]

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

Definition at line 76 of file Source.h.

◆ SourceInfo() [3/3]

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

Definition at line 77 of file Source.h.

Member Function Documentation

◆ asDecl()

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

Definition at line 85 of file Source.h.

Referenced by getLoc(), and getRange().

◆ asExpr()

const Expr * SourceInfo::asExpr ( ) const

Definition at line 35 of file Source.cpp.

Referenced by getLoc(), and getRange().

◆ asStmt()

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

Definition at line 82 of file Source.h.

Referenced by getLoc(), and getRange().

◆ getLoc()

SourceLocation SourceInfo::getLoc ( ) const

◆ getRange()

SourceRange SourceInfo::getRange ( ) const

Definition at line 25 of file Source.cpp.

References asDecl(), asExpr(), and asStmt().

Referenced by clang::interp::SourceMapper::getRange().

◆ operator bool()

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

Definition at line 90 of file Source.h.


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