kadircet added inline comments.

================
Comment at: clang-tools-extra/clangd/FindTarget.cpp:224
+    using ValTy = std::pair<const NamedDecl *, RelSet>;
+    llvm::SmallVector<ValTy, 1> Result;
+    for (const auto &Elem : Decls)
----------------
sammccall wrote:
> no need for lookups I think
> ```
> Result.resize(Decls.size());
> for (auto& Elem : Decls)
>   Result[Elem.second.second] = {Elem.first, Elem.second.first};
> ```
ah right, sorry I was in a rush :/


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72826



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to