[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 16 23:49:30 PDT 2025


================
@@ -1627,6 +1627,10 @@ struct CallHierarchyIncomingCall {
   /// The range at which the calls appear.
   /// This is relative to the caller denoted by `From`.
   std::vector<Range> fromRanges;
+
+  /// This caller might be a false positive.
+  /// We currently have no way of 100% confirming this.
+  bool mightNeverCall = false;
----------------
HighCommander4 wrote:

Please mention in the comment:

 * our example use case (virtual calls through a base type)
 * the fact that this is a clangd protocol extension (see similar comments to that effect in this file)

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


More information about the cfe-commits mailing list