clang
19.0.0git
|
Describes the statement/declaration an opcode was generated from. More...
#include "/home/runner/work/llvm/llvm/repo/clang/lib/AST/Interp/Source.h"
Public Member Functions | |
SourceInfo () | |
SourceInfo (const Stmt *E) | |
SourceInfo (const Decl *D) | |
SourceLocation | getLoc () const |
SourceRange | getRange () const |
const Stmt * | asStmt () const |
const Decl * | asDecl () const |
const Expr * | asExpr () const |
operator bool () const | |
Describes the statement/declaration an opcode was generated from.
|
inline |
|
inline |
|
inline |
const Expr * SourceInfo::asExpr | ( | ) | const |
Definition at line 35 of file Source.cpp.
Referenced by getLoc(), and getRange().
|
inline |
SourceLocation SourceInfo::getLoc | ( | ) | const |
Definition at line 15 of file Source.cpp.
References asExpr().
Referenced by clang::interp::State::CCEDiag(), clang::interp::State::FFDiag(), and clang::interp::SourceMapper::getLocation().
SourceRange SourceInfo::getRange | ( | ) | const |
Definition at line 25 of file Source.cpp.
References asExpr().
Referenced by clang::interp::SourceMapper::getRange().