[PATCH] D70569: [clangd] Allow extract-to-function on regions that always return.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 14:21:10 PST 2019
sammccall created this revision.
sammccall added a reviewer: kadircet.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, MaskRay, ilya-biryukov.
Herald added a project: clang.
We only do a trivial check whether the region always returns - it has to end
with a return statement.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70569
Files:
clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70569.230537.patch
Type: text/x-patch
Size: 7196 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191121/b52eef1c/attachment.bin>
More information about the cfe-commits
mailing list