[PATCH] D85318: [clangd] Hide "swap if branch" tweak

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 11:04:01 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9a7b8b22a75c: [clangd] Hide "swap if branch" tweak (authored by hokein).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85318/new/

https://reviews.llvm.org/D85318

Files:
  clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp


Index: clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
===================================================================
--- clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
+++ clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
@@ -40,6 +40,7 @@
   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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85318.283303.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200805/c6225681/attachment.bin>


More information about the cfe-commits mailing list