This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc88deef0a721: [clang][dataflow] Add `MatchSwitch` utility
library. (authored by ymandel).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST
xazax.hun accepted this revision.
xazax.hun added inline comments.
This revision is now accepted and ready to land.
Herald added a subscriber: rnkovacs.
Comment at: clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h:51
+template
+using MatchSwitch = std::function;
+
--
ymandel updated this revision to Diff 412763.
ymandel marked an inline comment as done.
ymandel added a comment.
moved to `MatchFinder::MatchResult`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120900/new/
https://reviews.llvm.org/D120900
Files:
ymandel marked an inline comment as done.
ymandel added a comment.
Thanks for the fast review!
Comment at: clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h:51
+template
+using MatchSwitch = std::function;
+
xazax.hun wrote:
> When we instantiate this w
xazax.hun added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h:51
+template
+using MatchSwitch = std::function;
+
When we instantiate this with `TransferState` we have `ASTContext` both as an
argument and as a member of `S
ymandel updated this revision to Diff 412693.
ymandel added a comment.
Adjust tests to use two different handlers.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120900/new/
https://reviews.llvm.org/D120900
Files:
clang/include/clang/Analysis/Flo
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 t