Moves the work required for retrieving annotation states into the SetupTest and PostVisitCFG callback to avoid having to run a separate pass over the CFG after analysis has completed.
Depends on D132147
Paths
| Differential D132377
[clang][dataflow] Add `SetupTest` parameter for `AnalysisInputs`. ClosedPublic Authored by wyt on Aug 22 2022, 7:33 AM.
Details Summary Moves the work required for retrieving annotation states into the SetupTest and PostVisitCFG callback to avoid having to run a separate pass over the CFG after analysis has completed. Depends on D132147
Diff Detail
Event Timelinegribozavr2 added inline comments. This revision is now accepted and ready to land.Aug 22 2022, 10:51 AM
wyt added a parent revision: D132147: [clang][dataflow] Refactor `TestingSupport.h`.Aug 26 2022, 2:07 PM wyt marked an inline comment as done. Comment ActionsPropagate change from parent patch.
ymandel added inline comments. wyt marked an inline comment as done. Comment ActionsAddress comment.
Comment Actions Update according to change in parent patch to replace designated initialisers when constructing AnalysisInputs. Closed by commit rG5a4aece76de7: [clang][dataflow] Add `SetupTest` parameter for `AnalysisInputs`. (authored by wyt). · Explain WhySep 1 2022, 6:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 457254 clang/unittests/Analysis/FlowSensitive/TestingSupport.h
clang/unittests/Analysis/FlowSensitive/TestingSupport.cpp
|
Why move this? It makes it hard to tell if there are other changes. If there are other changes, let's keep it where it is to have a clean diff and move it in a separate commit.