[PATCH] D131616: [clang][dataflow] Generalise match switch utility to other AST types and add a `CFGMatchSwitch` which currently handles `CFGStmt` and `CFGInitializer`.

weiyi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 04:59:53 PDT 2022


wyt updated this revision to Diff 452958.
wyt added a comment.
Herald added a subscriber: mgorny.

Move implementation to CFGMatchSwitch.h, add tests.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131616/new/

https://reviews.llvm.org/D131616

Files:
  clang/include/clang/Analysis/FlowSensitive/CFGMatchSwitch.h
  clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h
  clang/unittests/Analysis/FlowSensitive/CFGMatchSwitchTest.cpp
  clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
  clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131616.452958.patch
Type: text/x-patch
Size: 15960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220816/1192a3b2/attachment.bin>


More information about the cfe-commits mailing list