[PATCH] D39706: [refactor][extract] Initial implementation of variable captures
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 6 15:40:47 PST 2017
arphaman created this revision.
Herald added a subscriber: mgorny.
This patch adds an initial rudimentary support for capturing variables that should be passed to the extracted function.
The variables are passed to the extracted function if they're used in the extracted code. If they're defined they're ignored for now, but we'll be able to handle variables that defined in extracted code but that are used after extracted code later. The variables are sorted by name when passing them to the extracted function. The exact passing semantics (reference/pointer/const reference/const pointer) are not yet computed.
Repository:
rL LLVM
https://reviews.llvm.org/D39706
Files:
lib/Tooling/Refactoring/CMakeLists.txt
lib/Tooling/Refactoring/Extract/CaptureVariables.cpp
lib/Tooling/Refactoring/Extract/CaptureVariables.h
lib/Tooling/Refactoring/Extract/Extract.cpp
test/Refactor/Extract/CaptureSimpleVariables.cpp
test/Refactor/Extract/ExtractionSemicolonPolicy.cpp
test/Refactor/Extract/ExtractionSemicolonPolicy.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39706.121806.patch
Type: text/x-patch
Size: 13716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171106/6e03c9b7/attachment.bin>
More information about the cfe-commits
mailing list