]> granicus.if.org Git - clang/commit
[LibTooling] Add "SourceCode" library for functions relating to source-code manipulation.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 5 Apr 2019 14:05:03 +0000 (14:05 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 5 Apr 2019 14:05:03 +0000 (14:05 +0000)
commita50eeb5fd909ddd67d37785b624fc3e14ed4c9c2
treec3291d41b1e479818920d04ed003248e00a66b9f
parent85d44b105711ac3d0f818829262dced59b5b2d2d
[LibTooling] Add "SourceCode" library for functions relating to source-code manipulation.

Summary:
Introduces a utility library in Refactoring/ to collect routines related to
source-code manipulation.  In this change, we move "extended-range" functions
from the FixIt library (in clangTooling) to this new library.

We need to use this functionality in Refactoring/ and cannot access it if it
resides in Tooling/, because that would cause clangToolingRefactor to depend on
clangTooling, which would be a circular dependency.

Reviewers: ilya-biryukov, ioeric

Reviewed By: ilya-biryukov

Subscribers: mgorny, cfe-commits

Tags: #clang

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

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