[PATCH] D118260: [clangd][Hover] Suppress initializers with many tokens

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 27 01:26:58 PST 2022


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang-tools-extra/clangd/Hover.cpp:131
+                            const syntax::TokenBuffer &TB) {
+  if (auto *VD = llvm::dyn_cast<VarDecl>(D)) {
+    if (auto *IE = VD->getInit()) {
----------------
Explain why


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118260



More information about the cfe-commits mailing list