]> granicus.if.org Git - clang/commit
[LibTooling] Add RangeSelector library for defining source ranges based on bound...
authorYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 20 May 2019 13:15:14 +0000 (13:15 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 20 May 2019 13:15:14 +0000 (13:15 +0000)
commit656c6841800d286b6c4517d9c1f8308e808a4728
tree6e67d78be5dd06e7f13565a1a88cf05e5b4838d8
parent0764aec253cbbf4522bd69cedff79e9e3b4cede5
[LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

Summary:

The RangeSelector library defines a combinator language for specifying source
ranges based on bound ids for AST nodes.  The combinator approach follows the
design of the AST matchers.  The RangeSelectors defined here will be used in
both RewriteRule, for specifying source affected by edit, and in Stencil for
specifying source to use constructively in a replacement.

Reviewers: ilya-biryukov

Subscribers: mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61774

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361152 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Refactoring/RangeSelector.h [new file with mode: 0644]
lib/Tooling/Refactoring/CMakeLists.txt
lib/Tooling/Refactoring/RangeSelector.cpp [new file with mode: 0644]
unittests/Tooling/CMakeLists.txt
unittests/Tooling/RangeSelectorTest.cpp [new file with mode: 0644]