Go-to-def does not work on call to NotifyInternal() in MediaEventForwarder::NotifyIf()
Categories
(Webtools :: Searchfox, defect)
Tracking
(firefox116 fixed)
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: botond, Assigned: botond)
Details
Attachments
(1 file)
Steps to reproduce
- Load MediaEventSource.h
- In
MediaEventForwarder::ForwardIf()
, click onNotifyInternal()
(permalink)
Expected results
Go-to-definition is offered and takes you to MediaEventSourceImpl::NotifyInternal().
Actual results
Go-to-definition is not offered
Assignee | ||
Comment 1•2 years ago
•
|
||
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).
Assignee | ||
Comment 2•2 years ago
|
||
The underlying issue was fixed upstream in HeuristicResolver.
Assignee | ||
Comment 3•2 years ago
|
||
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.
Assignee | ||
Comment 4•2 years ago
|
||
Comment 6•2 years ago
|
||
bugherder |
Description
•