[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13716 bytes
Desc: not available
More information about the cfe-commits