[clang][dataflow] Refactor `clang/Analysis/FlowSensitive/MatchSwitchTest.cpp`.
authorWei Yi Tee <wyt@google.com>
Mon, 19 Sep 2022 18:41:18 +0000 (18:41 +0000)
committerWei Yi Tee <wyt@google.com>
Mon, 19 Sep 2022 19:10:41 +0000 (19:10 +0000)
commit88210b81eed803598afeeaa2a60eb26ddbb65435
treea8ffd21b7d06b78bbe4bda6c1d8d3e68d380851f
parentc625c17b88b4831c99269546fc0ede1667528c6b
[clang][dataflow] Refactor `clang/Analysis/FlowSensitive/MatchSwitchTest.cpp`.

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

Reviewed By: gribozavr2, sgatev

Differential Revision: https://reviews.llvm.org/D133935
clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp