Merges TransferOptions into the newly-introduced
DataflowAnalysisContext::Options and removes explicit parameter for
TransferOptions, relying instead on the common options carried by the analysis
context. Given that there was no intent to allow different options between calls
to transfer, a common value for the options is preferable.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h | ||
---|---|---|
39–40 | Please undo the comment reformatting. |
Initialize AnalysisOptions as a struct, avoiding a use-after-move bug from incorrect use of the fluent (rvalue-ref) API.
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h | ||
---|---|---|
89 | If we already change this code, I think we can consider replacing this with std::optional but feel free to ignore. |
use std::optional
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h | ||
---|---|---|
89 |
Thanks, I was actually wondering about that. I wasn't sure where llvm/clang was in terms of std::optional adoption. I'm happy to update. |
If we already change this code, I think we can consider replacing this with std::optional but feel free to ignore.