Instead, we turn StmtToEnvMap into a concrete class with the implementation that used to live in StmtToEnvMapImpl.
The layering issue that originally required the indirection through the
StmtToEnvMap interface no longer exists.
Paths
| Differential D146507
[clang][dataflow][NFC] Eliminate StmtToEnvMap interface. ClosedPublic Authored by mboehme on Mar 21 2023, 2:14 AM.
Details Summary Instead, we turn StmtToEnvMap into a concrete class with the implementation that used to live in StmtToEnvMapImpl. The layering issue that originally required the indirection through the
Diff Detail
Unit TestsFailed
Event Timelinegribozavr2 added inline comments.
This revision is now accepted and ready to land.Mar 21 2023, 4:29 AM
Comment Actions After some offline discussion with reviewers, we've come to the conclusion that AnalysisContext isn't a sufficiently clear abstraction to warrant putting it in a header. For the time being, I'll therefore pursue the less ambitious approach of simply eliminating the StmtToEnvMap interface and instead turning it into a concrete class with the implementation that used to be in StmtToEnvMapImpl. Comment Actions @gribozavr2 @xazax.hun Just wanted to confirm that you still regard this as ready to land now that I've changed the patch as we discussed offline? gribozavr2 added inline comments.
Comment Actions thanks!
mboehme added inline comments. This revision was landed with ongoing or failed builds.Mar 28 2023, 1:06 AM Closed by commit rG0608541aa4b5: [clang][dataflow][NFC] Eliminate StmtToEnvMap interface. (authored by mboehme). · Explain Why This revision was automatically updated to reflect the committed changes. mboehme marked 2 inline comments as done.
Revision Contents
Diff 506881 clang/include/clang/Analysis/FlowSensitive/Transfer.h
clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
clang/lib/Analysis/FlowSensitive/Transfer.cpp
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
|
Could you move the comment to the new declaration of this function?