[clangd] Disable DumpRecordLayout by default per https://bugs.llvm.org/show_bug.cgi...
authorSam McCall <sam.mccall@gmail.com>
Thu, 18 Jul 2019 15:00:38 +0000 (15:00 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 18 Jul 2019 15:00:38 +0000 (15:00 +0000)
llvm-svn: 366443

clang-tools-extra/clangd/refactor/tweaks/DumpAST.cpp

index 4bba9ce..985993a 100644 (file)
@@ -128,6 +128,11 @@ public:
         TypeWithKeyword::getTagTypeKindName(Record->getTagKind()));
   }
   Intent intent() const override { return Info; }
+  // FIXME: this is interesting to most users. However:
+  //  - triggering is too broad (e.g. triggers on comments within a class)
+  //  - showMessage has inconsistent UX (e.g. newlines are stripped in VSCode)
+  //  - the output itself is a bit hard to decipher.
+  bool hidden() const override { return true; }
 
 private:
   const RecordDecl *Record = nullptr;