[PATCH] D133664: [clangd] Fix hover on symbol introduced by using declaration

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 05:50:37 PDT 2022


kadircet added inline comments.


================
Comment at: clang-tools-extra/clangd/Hover.cpp:1011
+const NamedDecl *
+pickDeclToUse(const llvm::SmallVector<const NamedDecl *, N> &Candidates) {
+  if (Candidates.empty())
----------------
you can just pass in ArrayRef instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133664



More information about the cfe-commits mailing list