C++ indexer should treat constructor member initializer list field uses as having a contextsym of the constructor
Categories
(Webtools :: Searchfox, enhancement)
Tracking
(firefox134 fixed)
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: asuth, Assigned: asuth)
Details
Attachments
(2 files)
Currently field uses that are part of a constructor member initializer list end up having a context/contextsym of the constructor declaration because getContext(<the-constructor-decl>) is used which explicitly skips over the constructor decl. This means that field initializations either end up attributed as uses by the class if the constructor was defined inside the class definition or top-level uses if the constructor was defined outside of the class. This is easily addressed by making sure we use the constructor as the context decl.
I noticed this when the uses diagram for a field did not include the constructor. example field search.
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
This is propagating the upstream
https://github.com/mozsearch/mozsearch/pull/835 which was reviewed by
:arai.
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•