[PATCH] D62419: [LibTooling] Add `before` and `after` selectors for selecting point-ranges relative to nodes.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 24 12:35:21 PDT 2019
ymandel created this revision.
ymandel added a reviewer: ilya-biryukov.
Herald added a project: clang.
The `before` and `after` selectors allow users to specify a zero-length range --
a point -- at the relevant location in an AST-node's source. Point ranges can
be useful, for example, to insert a change using an API that takes a range to be
modified (e.g. `tooling::change()`).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62419
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: D62419.201315.patch
Type: text/x-patch
Size: 5256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190524/80e6c058/attachment.bin>
More information about the cfe-commits
mailing list