clang
19.0.0git
|
Interface for classes which map locations to sources. More...
#include "/home/runner/work/llvm/llvm/repo/clang/lib/AST/Interp/Source.h"
Public Member Functions | |
virtual | ~SourceMapper () |
virtual SourceInfo | getSource (const Function *F, CodePtr PC) const =0 |
Returns source information for a given PC in a function. More... | |
const Expr * | getExpr (const Function *F, CodePtr PC) const |
Returns the expression if an opcode belongs to one, null otherwise. More... | |
SourceLocation | getLocation (const Function *F, CodePtr PC) const |
Returns the location from which an opcode originates. More... | |
SourceRange | getRange (const Function *F, CodePtr PC) const |
|
inlinevirtual |
Returns the expression if an opcode belongs to one, null otherwise.
Definition at line 41 of file Source.cpp.
References getSource().
Referenced by clang::interp::InterpFrame::getExpr().
SourceLocation SourceMapper::getLocation | ( | const Function * | F, |
CodePtr | PC | ||
) | const |
Returns the location from which an opcode originates.
Definition at line 47 of file Source.cpp.
References clang::interp::SourceInfo::getLoc(), and getSource().
Referenced by clang::interp::InterpFrame::getLocation().
SourceRange SourceMapper::getRange | ( | const Function * | F, |
CodePtr | PC | ||
) | const |
Definition at line 51 of file Source.cpp.
References clang::interp::SourceInfo::getRange(), and getSource().
Referenced by clang::interp::InterpFrame::getCallRange(), and clang::interp::InterpFrame::getRange().
|
pure virtual |
Returns source information for a given PC in a function.
Implemented in clang::interp::InterpState, and clang::interp::EvalEmitter.
Referenced by getExpr(), getLocation(), getRange(), and clang::interp::InterpState::getSource().