Go to the documentation of this file.
12 using namespace clang;
17 return E->getExprLoc();
19 return S->getBeginLoc();
21 return D->getBeginLoc();
26 if (
auto *S = Source.dyn_cast<
const Stmt *>())
27 return dyn_cast<Expr>(S);
34 llvm::report_fatal_error(
"missing source expression");
const Expr * asExpr() const
virtual SourceInfo getSource(Function *F, CodePtr PC) const =0
Returns source information for a given PC in a function.
Encodes a location in the source.
SourceLocation getLoc() const
const Stmt * asStmt() const
SourceLocation getLocation(Function *F, CodePtr PC) const
Returns the location from which an opcode originates.
const Decl * asDecl() const
Decl - This represents one declaration (or definition), e.g.
Pointer into the code segment.
const Expr * getExpr(Function *F, CodePtr PC) const
Returns the expression if an opcode belongs to one, null otherwise.
Stmt - This represents one statement.
This represents one expression.