[PATCH] D81868: [libTooling] Add parser for string representation of `RangeSelector`.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 15 13:14:19 PDT 2020


ymandel created this revision.
ymandel added reviewers: gribozavr2, tdl-g.
Herald added a project: clang.

This patch adds a parser for a `RangeSelector` written as a string. The format
is closely based on the way one would right the selector in C++, except that
bound nodes are referred to by their bound identifier, rather than writing them
as strings (that is, no quotes are used). This should enable use of
`RangeSelector`s from tools like clang-query and web UIs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81868

Files:
  clang/include/clang/Tooling/Transformer/Parsing.h
  clang/lib/Tooling/Transformer/Parsing.cpp
  clang/unittests/Tooling/RangeSelectorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81868.270833.patch
Type: text/x-patch
Size: 16821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200615/25e4a578/attachment-0001.bin>


More information about the cfe-commits mailing list