[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 2 07:30:27 PST 2024
================
@@ -149,15 +150,18 @@ void Dex::buildIndex() {
InvertedIndex = std::move(Builder).build();
// Build RevRefs
- for (const auto &[ID, RefList] : Refs)
- for (const auto &R : RefList)
- if ((R.Kind & ContainedRefsRequest::SupportedRefKinds) !=
- RefKind::Unknown)
- RevRefs.emplace_back(R, ID);
- // Sort by container ID so we can use binary search for lookup.
- llvm::sort(RevRefs, [](const RevRef &A, const RevRef &B) {
- return A.ref().Container < B.ref().Container;
- });
+ if (Config::current().CallHierarchy.OutgoingCalls) {
----------------
kadircet wrote:
nit: early exit
https://github.com/llvm/llvm-project/pull/117673
More information about the cfe-commits
mailing list