|
clang 24.0.0git
|
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 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 89 of file Source.h.
Referenced by getLoc(), and getRange().
|
inline |
Definition at line 92 of file Source.h.
References asStmt().
Referenced by clang::interp::InterpState::getExpr(), clang::interp::SourceMapper::getExpr(), getLoc(), getRange(), and clang::interp::Compiler< Emitter >::visitAPValue().
|
inline |
Definition at line 86 of file Source.h.
Referenced by asExpr(), getLoc(), and getRange().
| SourceLocation SourceInfo::getLoc | ( | ) | const |
Definition at line 15 of file Source.cpp.
References asDecl(), asExpr(), and asStmt().
Referenced by clang::interp::allowNullSubObj(), clang::interp::State::CCEDiag(), clang::interp::State::FFDiag(), clang::interp::InterpState::getLocation(), and clang::interp::SourceMapper::getLocation().
| SourceRange SourceInfo::getRange | ( | ) | const |
Definition at line 25 of file Source.cpp.
References asDecl(), asExpr(), and asStmt().
Referenced by clang::interp::InterpState::getRange(), and clang::interp::SourceMapper::getRange().