[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 06:00:30 PST 2022
ymandel created this revision.
ymandel added reviewers: sgatev, gribozavr2.
Herald added subscribers: tschuett, steakhal, mgorny.
Herald added a project: All.
ymandel requested review of this revision.
Herald added a project: clang.
Adds `MatchSwitch`, a library for simplifying implementation of transfer
functions. `MatchSwitch` supports constructing a "switch" statement, where each
case of the switch is defined by an AST matcher. The cases are considered in
order, like pattern matching in functional languages.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120900
Files:
clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h
clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120900.412692.patch
Type: text/x-patch
Size: 13026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220303/0601a883/attachment-0001.bin>
More information about the cfe-commits
mailing list