Doxygen ignores inherited functions when a class inherits privately, but functions are declared publicly again

Sorry for the long title, this makes 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 publicly available:

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

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

Does anyone know how to fix this? Greetings

+3
source share
1 answer

I can not comment, so I will post this as an answer.

++, . " - - ", , , Doxygen . , , .

: http://www.parashift.com/c++-faq-lite/private-inheritance.html

, !

0

Source: https://habr.com/ru/post/1742198/


All Articles