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
Feature request: Warning for void-return with C typedefs? #8919
Comments
You wrote:
this is not correct |
Interesting. I just re-tested it and I have to enable both Or are you saying my statement is not correct in general, because |
I can reproduce your problem by using the original setup and setting
|
Interesting. Thanks for clarifying. The file was parsed and With a correct documentation of the file itself, |
Some projects do not allow a Feature Request without Pull Request, however, I am not absolutely sure whether this is not a bug. Could even be a misconfiguration, however, I do not see why. Anyway, commit 2428c5a fixed the warning for void functions but have a
\return
or\retval
documentation. That is very handy to find wrongly documented functions, mostly copy-and-paste errors. However, in ‘my’ current project, its authors used statements like\return Nothing
over two decades. Consequently, commit 2428c5a introduced zillion of warnings. After fixing all of them, I found three code constructs which do not trigger that return-void warning by Doxygen – and I wonder why:I understand that
hello_1
triggers that warning only withEXTRACT_STATIC=YES
and that requiresEXTRACT_ALL=YES
. However, the other three constructs show a return value in the resulting HTML documentation but do not create a warning. I used the following Doxyfile:Because the code constructs are in the HTML documentation, I do not think, I have a configuration error. Anyway, please, correct me if I am wrong. Anyway, anyway, I am very delighted about the current return-void warning. Perhaps it can be extended so it also catches those three cases.
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: