[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 00:47:07 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) {
+    vlog("WALDOWALDO Building RevRefs");
----------------
HighCommander4 wrote:

Oops, debug statement left in accidentally :laughing: 

https://github.com/llvm/llvm-project/pull/117673


More information about the cfe-commits mailing list