[all-commits] [llvm/llvm-project] 771899: [clangd] Allow extract-to-function on regions that...
Sam McCall via All-commits
all-commits at lists.llvm.org
Mon Dec 9 05:58:27 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 771899e94452bbd5696abf8e2da7fee3514bb692
https://github.com/llvm/llvm-project/commit/771899e94452bbd5696abf8e2da7fee3514bb692
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2019-12-09 (Mon, 09 Dec 2019)
Changed paths:
M clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
M clang-tools-extra/clangd/unittests/TweakTests.cpp
Log Message:
-----------
[clangd] Allow extract-to-function on regions that always return.
Summary:
We only do a trivial check whether the region always returns - it has to end
with a return statement.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70569
More information about the All-commits
mailing list