apply() will fail in those cases, so it's better to detect it in
prepare() already and hide code action from the user.
This was especially annoying on code bases that use a lot of
RETURN_IF_ERROR-like macros.
Paths
| Differential D92408
[clangd] ExtractFunction: disable on regions that sometimes, but not always return. ClosedPublic Authored by adamcz on Dec 1 2020, 10:24 AM.
Details Summary apply() will fail in those cases, so it's better to detect it in This was especially annoying on code bases that use a lot of
Diff Detail
Unit TestsFailed
Event Timelineusaxena95 added inline comments. This revision is now accepted and ready to land.Dec 5 2020, 4:29 AM This revision was landed with ongoing or failed builds.Dec 8 2020, 6:56 AM Closed by commit rGf6b205dae163: [clangd] ExtractFunction: disable on regions that sometimes, but not always… (authored by adamcz). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 309958 clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
|
s/ReturnStms/ReturnStmts