[PATCH] D67621: [libTooling] Add `ifBound`, `elseBranch` RangeSelector combinators.

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


ymandel created this revision.
ymandel added a reviewer: gribozavr.
Herald added a project: clang.

Adds two new combinators and corresponding tests to the RangeSelector library.

- `ifBound` -- conditional evaluation of range-selectors, based on whether a given node id is bound in the match.
- `elseBranch` -- selects the source range of the else and its statement.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67621

Files:
  clang/include/clang/Tooling/Refactoring/RangeSelector.h
  clang/lib/Tooling/Refactoring/RangeSelector.cpp
  clang/unittests/Tooling/RangeSelectorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67621.220340.patch
Type: text/x-patch
Size: 4484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190916/22531cbb/attachment.bin>


More information about the cfe-commits mailing list