clang 20.0.0git
|
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 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 |
Definition at line 87 of file Source.h.
Referenced by getLoc(), and getRange().
const Expr * SourceInfo::asExpr | ( | ) | const |
Definition at line 35 of file Source.cpp.
Referenced by getLoc(), and getRange().
|
inline |
Definition at line 86 of file Source.h.
Referenced by getLoc(), and getRange().
SourceLocation SourceInfo::getLoc | ( | ) | const |
Definition at line 15 of file Source.cpp.
References asDecl(), asExpr(), asStmt(), D, E, clang::Decl::getBeginLoc(), and clang::Expr::getExprLoc().
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 asDecl(), asExpr(), asStmt(), D, E, clang::Decl::getSourceRange(), and clang::Stmt::getSourceRange().
Referenced by clang::interp::SourceMapper::getRange().