[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 00:13:03 PST 2024


================
@@ -1751,6 +1752,7 @@ static std::optional<HierarchyItem> symbolToHierarchyItem(const Symbol &S,
   }
   HierarchyItem HI;
   HI.name = std::string(S.Name);
+  HI.detail = (S.Scope + S.Name).str();
----------------
HighCommander4 wrote:

I agree, showing the signature here would be quite useful.

I actually started implementing this for incoming calls in https://github.com/clangd/clangd/issues/915, but ran into a complication (our current indexing process doesn't actually store the signature for all functions).

This is solvable with some indexer changes, but I'll defer to a fix for that issue, which will now (once this patch is merged) benefit both incoming and outgoing calls.

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


More information about the cfe-commits mailing list