[PATCH] D67633: [libTooling] Add `access` and `ifBound` combinators to Stencil library.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 14:04:07 PDT 2019


ymandel created this revision.
ymandel added a reviewer: gribozavr.
Herald added a project: clang.
ymandel added a parent revision: D67632: [libTooling] Introduce new library of source-code builders..

This revision add the `access` and `ifBound` combinators to the Stencil library:

- `access` -- constructs an idiomatic expression for accessing a member (a `MemberExpr`).
- `ifBound` -- chooses between two `StencilParts` based on the whether an id is bound in the match (corresponds to the combinator of the same name in RangeSelector).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67633

Files:
  clang/include/clang/Tooling/Refactoring/Stencil.h
  clang/lib/Tooling/Refactoring/Stencil.cpp
  clang/unittests/Tooling/StencilTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67633.220387.patch
Type: text/x-patch
Size: 12543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190916/38e25bb8/attachment.bin>


More information about the cfe-commits mailing list