[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-04 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
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

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Gábor Horváth via Phabricator via cfe-commits
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; + --

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
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:

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
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

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Gábor Horváth via Phabricator via cfe-commits
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

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
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

[PATCH] D120900: [clang][dataflow] Add `MatchSwitch` utility library.

2022-03-03 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
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