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");
38 return getSource(F, PC).getLoc();
Pointer into the code segment.
Stmt - This represents one statement.
Decl - This represents one declaration (or definition), e.g.
SourceLocation getLoc() const
const Stmt * asStmt() const
This represents one expression.
const Decl * asDecl() const
Encodes a location in the source.
Dataflow Directional Tag Classes.
const Expr * getExpr(Function *F, CodePtr PC) const
Returns the expression if an opcode belongs to one, null otherwise.
SourceLocation getLocation(Function *F, CodePtr PC) const
Returns the location from which an opcode originates.
const Expr * asExpr() const