[PATCH] D76103: [clangd] Extend findTarget()'s dependent name heuristic to handle enumerators

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 17 14:35:23 PDT 2020


sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: clang-tools-extra/clangd/FindTarget.cpp:82
+    std::vector<const NamedDecl *> Result;
+    llvm::copy(
+        ET->getDecl()->lookup(NameFactory(ET->getDecl()->getASTContext())),
----------------
or `auto result = ET->getDecl()->lookup(...); return {result.begin(), result.end()}`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76103





More information about the cfe-commits mailing list