Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement a new EXTRACT_PRIVATE_VIRTUAL option #6729
The classic article about Virtuality from Herb Sutter suggests that virtual functions are always made private and public class interface is never virtual. Until now, it was not really possible to document these functions in Doxygen:
The usual workaround was to put the members into protected scope just for Doxygen:
#ifdef DOXYGEN_GENERATING_OUTPUT protected: #else private: #endif /** @brief Documented private virtual function */ virtual doStuff();
I'm mainly using the XML output, for which private functions were already included (even though unconditionally, see #2405 and #4504), but until now it was not possible to
Thanks in advance for merging!
@albert-github Ah, thanks for pointing that out, Didn't know about this restriction, sorry.
I wanted to emphasise the word, yes, because I think it's important. If I use