[Clangd] ExtractFunction Added checks for broken control flow
authorShaurya Gupta <shauryab98@gmail.com>
Fri, 30 Aug 2019 09:57:56 +0000 (09:57 +0000)
committerShaurya Gupta <shauryab98@gmail.com>
Fri, 30 Aug 2019 09:57:56 +0000 (09:57 +0000)
commit3b08a61f7e81fea7b4d04fd7c6072d4ee71dacf6
treec1fbdfb2dd1ad0419c88d054226c3cad43403175
parent5c9f3cfec78f9e9ae013de9a0d092a68e3e79e00
[Clangd] ExtractFunction Added checks for broken control flow

Summary:
- Added checks for broken control flow
- Added unittests

Reviewers: sammccall, kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66732

llvm-svn: 370455
clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp