]> granicus.if.org Git - clang/commit
[LibTooling] Update Transformer to use RangeSelector instead of NodePart enum.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Wed, 22 May 2019 14:48:19 +0000 (14:48 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Wed, 22 May 2019 14:48:19 +0000 (14:48 +0000)
commit94dc093645dfe5004e127bec147036900db09320
treed37fc069033cdb05bce3e73066188c60adbca27e
parent680af1a8ca873be1ab4fc759a83c239d16245fc4
[LibTooling] Update Transformer to use RangeSelector instead of NodePart enum.

Transformer provides an enum to indicate the range of source text to be edited.
That support is now redundant with the new (and more general) RangeSelector
library, so we remove the custom enum support in favor of supporting any
RangeSelector.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361392 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Refactoring/Transformer.h
lib/Tooling/Refactoring/Transformer.cpp
unittests/Tooling/TransformerTest.cpp