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

Removing all clever tricks and introducing duplicate code so doxygen can create docs #250

Merged

Conversation

steiltre
Copy link
Collaborator

Removes template specializations for ygm::container::detail::base_iteration and splits into _value and _key_value names. This leads to _value and _key_value variants of the ygm::container::detail::*_proxy classes. This is being done to allow doxygen to understand the code well enough to make reasonable documentation.

A similar split was performed with ygm::container::detail::base_batch_erase. Because the _key_value variant is still inheriting from the _key variant, not all of the generated erase() functions end up in the Doxygen output. This still needs to be pulled apart (with more duplicated code).

Developing locally, I encountered a bug in doxygen that makes it unable to handle trailing requires clauses, causing most of the functions to remain undocumented. This was fixed in doxygen here. A new enough version of doxygen should be available on Ubuntu 24.04, but I'm not sure if this is being used by readthedocs. If it's not by default, it looks like it is possible to set our repo to use 24.04 for generating docs.

@steiltre steiltre merged commit 46feb90 into LLNL:v0.7-dev Aug 29, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant