This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Refactor `clang/Analysis/FlowSensitive/MatchSwitchTest.cpp`.
ClosedPublic

Authored by wyt on Sep 15 2022, 3:52 AM.

Details

Summary
  • Remove use of runDataflowAnalysis to keep test isolated.
  • Add test for ASTMatchSwitch<CXXCtorInitializer, ...>.

Diff Detail

Event Timeline

wyt created this revision.Sep 15 2022, 3:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 3:52 AM
wyt requested review of this revision.Sep 15 2022, 3:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 3:52 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sgatev accepted this revision.Sep 15 2022, 4:08 AM
sgatev added inline comments.
clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp
135–136

Let's move this below line 27 and remove it from the other tests.

This revision is now accepted and ready to land.Sep 15 2022, 4:08 AM
wyt updated this revision to Diff 460371.Sep 15 2022, 4:50 AM

Address comment.

wyt marked an inline comment as done.Sep 15 2022, 4:51 AM
gribozavr2 accepted this revision.Sep 15 2022, 4:14 PM
This revision was landed with ongoing or failed builds.Sep 19 2022, 12:10 PM
This revision was automatically updated to reflect the committed changes.