Bug 375283 - Overriding a method from a template base class is shown as "hiding"
Summary: Overriding a method from a template base class is shown as "hiding"
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.1.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-19 07:39 UTC by Nicolás Alvarez
Modified: 2022-11-29 05:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolás Alvarez 2017-01-19 07:39:52 UTC
If I have a template class with a method using template parameters in its signature, and I override it from a subclass, the tooltip says the method is "hiding" instead of "overriding" the one in the parent class.

template<typename T>
class Base {
public:
    virtual void foo(T x);
};

class Derived: public Base<int> {
public:
    void foo(int x);
};

The tooltip on Derived::foo says "Hides a function from Base< T >".

If Base is not a template, and Base::foo simply takes int, the tooltip correctly says "Overrides a function from Base".

Also worth noting, if Derived is also a template, it still says "Hides", probably because the signatures still don't match (the T template parameter is not the same on each class):

template<typename T>
class Derived: public Base<T> {
public:
    void foo(T x); //says "Hides"
};

(Real world code example: ContextBuilder::startVisiting in the qmljs plugin)
Comment 1 Justin Zobel 2022-10-30 00:37:37 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-14 05:15:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-29 05:19:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!