This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGd27386384a2a: [clang] Remove deprecated ControlFlowContext::build() (authored by gribozavr).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D140625/new/ https://reviews.llvm.org/D140625 Files: clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp Index: clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp =================================================================== --- clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp +++ clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp @@ -67,12 +67,5 @@ 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 Index: clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h =================================================================== --- clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h +++ clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h @@ -35,10 +35,6 @@ 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; }
Index: clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp =================================================================== --- clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp +++ clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp @@ -67,12 +67,5 @@ 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 Index: clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h =================================================================== --- clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h +++ clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h @@ -35,10 +35,6 @@ 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; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits