-
Notifications
You must be signed in to change notification settings - Fork 2.1k
doc/doxygen: allow undocumented entities #21382
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
base: master
Are you sure you want to change the base?
doc/doxygen: allow undocumented entities #21382
Conversation
Not every internal macro or obvious function parameter needs to be documented, as shown by the number of workarounds in place in our code base. Rather than adding creating workarounds, let's just not warn about undocumented stuff.
Now that undocumented stuff is allowed, let's rather fix issues than maintain a list of exceptions.
|
I do think there are good reasons to require documentation in the CI, loosing this requirement will leave the responsibility of documenting code solely to the reviewers. |
|
Is there no middle ground between these two extremes? Some way of marking some headers as internal and thus with no documentation requirement, for example? |
|
A middle ground might be to have Doxygen run twice, once on Edit: we could even make a positive reward and print the how many warnings the changes fixed :D Right now it's a bit of a quagmire, a lot of the exceptions probably just exist to get doccheck to pass, but should be fixed. But fixing all the warnings is an insane amount of work that probably nobody will tackle. |
I think being internal and not requiring doc are separate things. E.g. the context switching code for a given architecture is clearly internal and clearly in need of good documentation. Another example would be I doubt that a a simple rule to decide when to document and when not is going to cut it. |
|
wouldn't |
|
we could also use |
That does have a different purpose. In the We could however change the
|
Okay, you're right, I agree. Maybe a future documentation generator would display symbols marked Regarding |
|
Just reiterating... what we want is /// @beginundocumented
int undocumented_but_visible(void);
/// @endundocumentedbecause the other thing we already have: #ifndef DOXYGEN
int undocumented_and_invisbible(void);
#endifor /// @cond
int undocumented_and_invisbible(void);
/// @endcond |
|
I think we beed both. E.g. consider Doxygen cannot know that we have vendor specific implementations of the same API, so we actually should make sure that only once instance is shown in the doc. But for e.g. |
|
we agree on what we need. |
miri64
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this.... With this I will forget to document stuff, I will forget to pay attention for undocumented code in reviews. So, NACK from my side.
(That's not to say if I can be convinced if one can guarantee me that I won't forget ;-) )
Contribution description
Not every internal macro or obvious function parameter needs to be documented, as shown by the number of workarounds in place in our code base.
Rather than adding creating workarounds, let's just not warn about undocumented stuff.
This allows us to stop maintaining a long list of exceptions in the docchecks.
Testing procedure
After all remaining issues have been solved, the CI should be green again.
Issues/PRs references
None