sammccall accepted this revision.
sammccall 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)
----------------
no need for lookups I think
```
Result.resize(Decls.size());
for (auto& Elem : Decls)
Result[Elem.second.second] = {Elem.first, Elem.second.first};
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72826/new/
https://reviews.llvm.org/D72826
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits