[clang-tools-extra] 9a7b8b2 - [clangd] Hide "swap if branch" tweak
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 5 11:03:47 PDT 2020
Author: Haojian Wu
Date: 2020-08-05T20:03:21+02:00
New Revision: 9a7b8b22a75c4b5a065775a75a6a3dd2718ac970
URL: https://github.com/llvm/llvm-project/commit/9a7b8b22a75c4b5a065775a75a6a3dd2718ac970
DIFF: https://github.com/llvm/llvm-project/commit/9a7b8b22a75c4b5a065775a75a6a3dd2718ac970.diff
LOG: [clangd] Hide "swap if branch" tweak
This tweak is more like a demo, and doesn't provide much value in
practice.
Differential Revision: https://reviews.llvm.org/D85318
Added:
Modified:
clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp b/clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
index 2422743019a1..d6966e699fdb 100644
--- a/clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
+++ b/clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
@@ -40,6 +40,7 @@ class SwapIfBranches : public Tweak {
Expected<Effect> apply(const Selection &Inputs) override;
std::string title() const override { return "Swap if branches"; }
Intent intent() const override { return Refactor; }
+ bool hidden() const override { return true; }
private:
const IfStmt *If = nullptr;
More information about the cfe-commits
mailing list