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

Igor V. Kovalenko via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 20 09:25:48 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();
----------------
i-garrison wrote:

adding signature looks a bit more helpful, maybe one day add return type info too
```suggestion
  HI.detail = (S.Scope + S.Name + S.Signature).str();
```

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


More information about the cfe-commits mailing list