Closed Bug 1226890 Opened 10 years ago Closed 5 years ago

Nonvirtual C++ method overrides aren't being recognized as overrides

Categories

(Webtools Graveyard :: DXR, defect)

defect
Not set
normal

Tracking

(firefox45 affected)

RESOLVED WONTFIX
Tracking Status
firefox45 --- affected

People

(Reporter: twointofive, Unassigned)

Details

For something like class B { void f(); }; class D : public B { void f(); }; The context menu for the f's should show overrides or overriden, and searching for overrides: or overridden: should return results. If anybody knows of examples of nonvirtual overrides in mozilla-central (or how one might go about finding them) please post them here for testing - thanks.
Just a note (I'm not working on this): the clang ast only tracks *virtual* overrides for its overridden_methods list: CXXMethodDecl::addOverriddenMethod http://clang.llvm.org/doxygen/DeclCXX_8cpp_source.html#l01566 so it looks like the non-virtual overrides aren't going to come for free.
It sounds like that's a pretty unusual corner case, so I'm not too worried about it. Thanks for noting it, though.

DXR is no longer available. Searchfox is now replacing it.
See meta bug 1669906 & https://groups.google.com/g/mozilla.dev.platform/c/jDRjrq3l-CY for more details.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.