Doxygen ignoring inherited functions, when class inherits privately but the functions declared publi

Posted by MichaelM on Stack Overflow See other posts from Stack Overflow or by MichaelM
Published on 2010-04-22T00:14:29Z Indexed on 2010/04/22 1:13 UTC
Read the original article Hit count: 623

Filed under:
|
|

Sorry for long winded title, this makes a lot more sense with an example.

Suppose we have a class A:

class A {
    public:
        void someFunction();
        void someOtherFunction();
};

And another class that privately inherits from A. However, we re-declare one of the inherited functions as public:

class B : private A {
    public:
        A::someFunction;
}

When this code is processed by Doxygen, it does not recognise the public declaration of someFunction in class B. Instead, it shows someFunction as a privately inherited function. This is incorrect.

Is anybody aware of how to fix this? Cheers

© Stack Overflow or respective owner

Related posts about doxygen

Related posts about c++