[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:14:59 PST 2024


================
@@ -1700,6 +1700,7 @@ declToHierarchyItem(const NamedDecl &ND, llvm::StringRef TUPath) {
 
   HierarchyItem HI;
   HI.name = printName(Ctx, ND);
+  // FIXME: Populate HI.detail the way we do in symbolToHierarchyItem?
----------------
HighCommander4 wrote:

The difference between `declToHierarchyItem` and `symbolToHierarchyItem` is the former is used for symbols from the AST, and the latter for symbols from the index. They should both ideally produce the same result, but the implementation (and sometimes the amount of detail available in the respective inputs) is different.

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


More information about the cfe-commits mailing list