[all-commits] [llvm/llvm-project] c88dee: [clang][dataflow] Add `MatchSwitch` utility library.
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Fri Mar 4 09:20:18 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c88deef0a7218dd5c30500e7d3f58fc23283d3e5
https://github.com/llvm/llvm-project/commit/c88deef0a7218dd5c30500e7d3f58fc23283d3e5
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-03-04 (Fri, 04 Mar 2022)
Changed paths:
A clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h
M clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
A clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp
Log Message:
-----------
[clang][dataflow] Add `MatchSwitch` utility library.
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.
Differential Revision: https://reviews.llvm.org/D120900
More information about the All-commits
mailing list