Reviewed By: merrymeerkat
Differential Revision: https://reviews.llvm.org/
D140625
static llvm::Expected<ControlFlowContext> build(const Decl *D, Stmt &S,
ASTContext &C);
- // DEPRECATED. Use overload above.
- static llvm::Expected<ControlFlowContext> build(const Decl *D, Stmt *S,
- ASTContext *C);
-
/// Returns the `Decl` containing the statement used to construct the CFG, if
/// available.
const Decl *getDecl() const { return ContainingDecl; }
return ControlFlowContext(D, std::move(Cfg), std::move(StmtToBlock));
}
-llvm::Expected<ControlFlowContext>
-ControlFlowContext::build(const Decl *D, Stmt *S, ASTContext *C) {
- assert(S != nullptr);
- assert(C != nullptr);
- return build(D, *S, *C);
-}
-
} // namespace dataflow
} // namespace clang