-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using
keyword on base class function brings the documentation into derived class
#10843
Comments
@scott-zhong I think the later versions of doxygen are actually (more) correct. If I change your example to #include <stdio.h>
/**
* Base docs
*/
class Base
{
public:
/**
* Base fun docs
*/
void fun(int v) { printf("Base::fun(%d)\n",v); }
};
/**
* Derived docs
*/
class Derived : private Base
{
public:
using Base::fun;
/**
* Derived fun docs
*/
void fun(double d) { printf("Derived::fun(%f)\n",d); }
};
int main()
{
Derived d;
d.fun(10);
d.fun(10.0);
} The compiled program will print
Even though |
@doxygen I disagree, |
@scott-zhong In your original example, you could simply omit the using statement to get the behavior you want. It doesn't do anything. In case where it does something (like changing the protection level in my example) I think the current behavior is better. |
@doxygen That is certainly true. I am fine with closing this issue. |
Describe the bug
using
keyword on base class function brings the documentation into derived class.Screenshots
Doxygen 1.8.13
Doxygen 1.8.14 - trunk (85eb55d)
To Reproduce
testcase.zip
Expected behavior
Base function documentation shouldn't be in Derived class with
using
keywordVersion
Doxygen 1.8.14 - trunk (85eb55d)
The text was updated successfully, but these errors were encountered: