Is there an @inheritDoc equivalent in Doxygen?

Roberto picture Roberto · Apr 4, 2011 · Viewed 9.3k times · Source

I know Javadoc will compile {@inheritDoc}, but what's the Doxygen way to do this?

Answer

Conrad Poelman picture Conrad Poelman · Mar 21, 2015

With INHERIT_DOCS set to YES in your Doxygen configuration file (which is actually the default), just leave your overridden members completely uncommented and Doxygen will automatically insert the documentation from the base class.

@copydoc is useful for the case where you want to inherit base class comments, but then add some subclass-specific details.