Adds support for recognizing range-for loops in the main algorithm for computing
the model fixpoint.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp | ||
---|---|---|
113 | Making this purely a comment might risk getting it attached to the wrong method. Consider adding an empty VisitCXXForRangeStmt(), which would make the "do nothing" behavior explicit in code? | |
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp | ||
1631 | Is this check (and the (void)0 with the [[after_loop] annotation) actually needed? IIUC, the condition we want to test is that the analysis converges. The fact that it produces a Results entry for [[after_loop]] is really more a check of the testing infrastructure rather than the analysis itself? |
address review comments
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp | ||
---|---|---|
1631 | Correct. I thought it would be useful to include some expectations, but those are really quite independent, so I've removed them. We could go further and call runAnalysis instead of runDataflow, but I prefer the latter for consistency (in terms of build args and the like) with the other tests in this suite. |
Making this purely a comment might risk getting it attached to the wrong method.
Consider adding an empty VisitCXXForRangeStmt(), which would make the "do nothing" behavior explicit in code?