[PATCH] D35012: [refactor] Add the AST source selection component
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 06:56:23 PDT 2017
arphaman created this revision.
Herald added a subscriber: mgorny.
This patch adds the base AST source selection component to the refactoring library. AST selection is represented using a tree of `SelectedASTNode` values. Each selected node gets its own selection kind, which can actually be `None` even in the middle of tree (e.g. statement in a macro whose child is in a macro argument). The initial version constructs a "raw" selection tree, without applying filters and canonicalisation operations to the nodes.
Repository:
rL LLVM
https://reviews.llvm.org/D35012
Files:
include/clang/Tooling/Refactoring/ASTSelection.h
lib/Tooling/Refactoring/ASTSelection.cpp
lib/Tooling/Refactoring/CMakeLists.txt
lib/Tooling/Refactoring/SourceLocationUtils.h
unittests/Tooling/ASTSelectionTest.cpp
unittests/Tooling/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35012.105266.patch
Type: text/x-patch
Size: 31657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170705/1d98993f/attachment-0001.bin>
More information about the cfe-commits
mailing list