-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Documentation: WARN_NO_PARAMDOC not disabled by EXTRACT_ALL? #8905
Comments
There is now a discrepancy between the documentation and the implementation. A bisect reveals that the commit:
causes this extra warning. The waning as is is correct and caused by |
…TRACT_ALL? Placing guard around the warning. Making it consistent with the case that when a return type is needed.
I've just pushed a proposed patch, pull request #8906 |
Can you elaborate a bit more on the proposed change? If I am not misreading, with that change, My plan was/is: Enable Doxygen to be a syntax checker to find the wildest errors in that project. In that project, Doxygen is not even used to create documentation. Because of that, I were looking for zero warnings, so developers at least look at their newly introduced issues and possible fix them theirselves. Most of those were simply typos and/or internal changes over time. Minor nits. However, no reason to confuse fellow developers. Furthermore, my fear, I would have never ever looked at What about moving the warning about void-return into In other words, I would prefer to keep this issue rather than fixing it that way. Does my vote count? Or is the latter a thumbs up on enhancement #8073? Perhaps, really, I am misusing Doxygen. Again, I would like to utilize Doxygen just like a syntax checker. |
My personal opinion: Disabling and enabling warning is a tricky business also for different users / usage and this issue underlines it again. The documentation states for
and I think the proposed change just does this and makes it also consistent with other Like you wrote:
the intention of doxygen is not to do syntax checking on the code, doxygen expects valid code and from that tries to generate some documentation. When the code is not valid the behavior is undefined. So from that you are, in my opinion, indeed misusing doxygen.
so actually errors in the documentation of the code, this is one of the most annoying things for, new, developers and they should be fixed. It also never hurts to run a separate spelling checker on the documentation. The fixing of the It might be a thumbs up for #8073 but maybe also about redesigning the entire warnings (I once thought about giving each warning, type, its own warning number,so users can select their own waning types, but this will be a bigggg job). |
I think we have a misunderstanding. I am not using Doxygen to find faults in the underlying C source code. I am about using Doxygen as syntax checker for its the Doxygen commands added to the source code. Doxygen is quite good in that thanks to
Wuup. Where is that? The online documentation and the default generation configuration file created via |
|
…TRACT_ALL? Solution had to be independent of the setting of `WARN_NO_PARAMDOC` in this routine.
I just updated the pull request (@traud please test). |
Yes, my issue report was against the documentation, otherwise I would have not noticed it actually, therefore |
issue #8905 Documentation: WARN_NO_PARAMDOC not disabled by EXTRACT_ALL?
Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
The online documentation (and the configuration file generated on default with
$ doxygen -g
) state forWARN_NO_PARAMDOC
: ‘If EXTRACT_ALL is set to YES then this flag will automatically be disabled.’Example Doxyfile A:
Example Doxyfile B:
Consequently, those two example configurations should produce the same result. However, when I use the following example C code, only the one with
WARN_NO_PARAMDOC
enabled errors.Personally, I like the behavior to be able to have more fine grained control. Therefore, I file this as a miss in the Doxygen configuration file documentation. However, if I misunderstood something, please, correct me!
Version
1.9.1 on Ubuntu 21.10, re-tested with current binary release (1.9.2)
The text was updated successfully, but these errors were encountered: