Adds selectBound, a Stencil combinator that allows the user to supply multiple alternative cases, discriminated by bound node IDs.
This patch was authored primarily by Zie Weaver<zearen@google.com>.
Paths
| Differential D111708
[libTooling] Add "switch"-like Stencil combinator ClosedPublic Authored by ymandel on Oct 13 2021, 5:33 AM.
Details
Summary Adds selectBound, a Stencil combinator that allows the user to supply multiple alternative cases, discriminated by bound node IDs. This patch was authored primarily by Zie Weaver<zearen@google.com>.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 14 2021, 7:08 AM This revision was landed with ongoing or failed builds.Oct 14 2021, 9:46 AM Closed by commit rGb6c218d4fdb7: [libTooling] Add "switch"-like Stencil combinator (authored by ymandel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 379752 clang/include/clang/Tooling/Transformer/Stencil.h
clang/lib/Tooling/Transformer/Stencil.cpp
clang/unittests/Tooling/StencilTest.cpp
|