[clang] d273863 - [clang] Remove deprecated ControlFlowContext::build()
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 23 06:07:06 PST 2022
Author: Dmitri Gribenko
Date: 2022-12-23T15:06:59+01:00
New Revision: d27386384a2a414bcd7c7a18491db32f4ca86881
URL: https://github.com/llvm/llvm-project/commit/d27386384a2a414bcd7c7a18491db32f4ca86881
DIFF: https://github.com/llvm/llvm-project/commit/d27386384a2a414bcd7c7a18491db32f4ca86881.diff
LOG: [clang] Remove deprecated ControlFlowContext::build()
Reviewed By: merrymeerkat
Differential Revision: https://reviews.llvm.org/D140625
Added:
Modified:
clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h b/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
index 58e901fac0047..e641468f77d00 100644
--- a/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
+++ b/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
@@ -35,10 +35,6 @@ class ControlFlowContext {
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; }
diff --git a/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp b/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
index 2bdb1cdcc9534..2492b5203724c 100644
--- a/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
+++ b/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
@@ -67,12 +67,5 @@ ControlFlowContext::build(const Decl *D, Stmt &S, ASTContext &C) {
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
More information about the cfe-commits
mailing list