HomePhabricator

[LibTooling] Add RangeSelector library for defining source ranges based on…

Description

[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

Details

Committed
ymandelMay 20 2019, 6:15 AM
Differential Revision
D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.
Branches
Unknown
Tags
Unknown