[PATCH] D130653: [clang][dataflow][NFC] Remove last use of deprecated ctor
Eric Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 27 11:22:47 PDT 2022
li.zhe.hua updated this revision to Diff 448105.
li.zhe.hua added a comment.
Explicitly name `TransferOptions`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130653/new/
https://reviews.llvm.org/D130653
Files:
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
Index: clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
===================================================================
--- clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
+++ clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
@@ -59,10 +59,6 @@
public:
TypeErasedDataflowAnalysis() : Options({}) {}
- /// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
- TypeErasedDataflowAnalysis(bool ApplyBuiltinTransfer)
- : Options({ApplyBuiltinTransfer, TransferOptions{}}) {}
-
TypeErasedDataflowAnalysis(DataflowAnalysisOptions Options)
: Options(Options) {}
Index: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
===================================================================
--- clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
+++ clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
@@ -66,7 +66,8 @@
/// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
explicit DataflowAnalysis(ASTContext &Context, bool ApplyBuiltinTransfer)
- : TypeErasedDataflowAnalysis(ApplyBuiltinTransfer), Context(Context) {}
+ : DataflowAnalysis(Context, DataflowAnalysisOptions{ApplyBuiltinTransfer,
+ TransferOptions{}}) {}
explicit DataflowAnalysis(ASTContext &Context,
DataflowAnalysisOptions Options)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130653.448105.patch
Type: text/x-patch
Size: 1464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220727/f0e4b940/attachment.bin>
More information about the cfe-commits
mailing list