[PATCH] D39055: [refactor] Add an editor client that is used in clangd

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 07:10:52 PDT 2017


arphaman created this revision.
Herald added subscribers: mgorny, klimek.

This patch adds an editor client that can do things like:

- find a list of available refactoring editor commands in a particular range.
- perform a particular refactoring editor command in a particular range.

This editor client is used in clangd's support for refactoring commands (See dependent revision).

(I've ran out of time to add a unit test before devmeeting, so for now this is tested in clangd, but I'll add a unit test when I update the patch)


Repository:
  rL LLVM

https://reviews.llvm.org/D39055

Files:
  include/clang/Tooling/Refactoring/EditorClient.h
  include/clang/Tooling/Refactoring/RefactoringActionRule.h
  include/clang/Tooling/Refactoring/RefactoringActionRules.h
  include/clang/Tooling/Refactoring/RefactoringActionRulesInternal.h
  lib/Tooling/Refactoring/CMakeLists.txt
  lib/Tooling/Refactoring/EditorClient.cpp
  lib/Tooling/Refactoring/EditorCommand.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39055.119480.patch
Type: text/x-patch
Size: 12793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171018/746060b8/attachment-0001.bin>


More information about the cfe-commits mailing list