Closed Bug 1836695 Opened 2 years ago Closed 2 years ago

Go-to-def does not work on call to NotifyInternal() in MediaEventForwarder::NotifyIf()

Categories

(Webtools :: Searchfox, defect)

defect

Tracking

(firefox116 fixed)

RESOLVED FIXED
Tracking Status
firefox116 --- fixed

People

(Reporter: botond, Assigned: botond)

Details

Attachments

(1 file)

Steps to reproduce

  1. Load MediaEventSource.h
  2. In MediaEventForwarder::ForwardIf(), click on NotifyInternal() (permalink)

Expected results

Go-to-definition is offered and takes you to MediaEventSourceImpl::NotifyInternal().

Actual results

Go-to-definition is not offered

Unlike the examples in bug 1781178, this is a case where clangd does not find a semantic target either. (It has a heuristic where it takes the textual search results, filters them for locations which are definitions of some symbol, and offers those as a fallback, but this is of course inaccurate, e.g. it sweeps up the completely unrelated WebRenderBridgeParent::NotifyInternal() as a result too.)

However, in this case resolving the target semantically should be possible (for both clangd and Searchfox).

The underlying issue was fixed upstream in HeuristicResolver.

Assignee: nobody → botond

mozsearch PR: https://github.com/mozsearch/mozsearch/pull/637

Also deployed to dev.searchfox.org to demonstrate that the PR fixes the original issue on m-c.

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/739f86c0b6b9 Pick up latest HeuristicResolver updates from llvm trunk. r=andi DONTBUILD
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: