Skip to content
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

Make use of inheritance in class API docs #4258

Open
karlnapf opened this issue Apr 16, 2018 · 2 comments
Open

Make use of inheritance in class API docs #4258

karlnapf opened this issue Apr 16, 2018 · 2 comments

Comments

@karlnapf
Copy link
Member

karlnapf commented Apr 16, 2018

There are many methods that are well documented in the base class (doxygen docs).
Then the subclass often doesnt provide any comments at all or, even worse, copy-pased from the baseclass.

But doxygen can in fact automatically use base class doc strings if subclasses do not provide one:

This depends on the INHERIT_DOCS configuration setting. When setting INHERIT_DOCS to YES the documentation will be copied, when setting it to NO the derived method will remain undocumented. This option is already enabled in shogun

This task to to do through the method doc strings and try to

  • use base class docs where possible (delete subclass docs)
  • if subclass docs are useful (something is different), write proper ones

Also see https://stackoverflow.com/questions/6534831/will-doxygen-use-base-class-docs-if-a-sub-class-doesnt-provide-its-own?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Good candidates to start

  • CMachine
  • CKernel
  • CLabels
@nouranali
Copy link
Contributor

I want to start in this issue, but i need more clarification, would you help

@karlnapf
Copy link
Member Author

Not sure what you mean, it is all described above?

@karlnapf karlnapf mentioned this issue May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants