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

[c++] @return tag is added for functions returning void #5

Closed
bartlibert opened this issue Jul 10, 2019 · 1 comment
Closed

[c++] @return tag is added for functions returning void #5

bartlibert opened this issue Jul 10, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bartlibert
Copy link

Describe the bug
In c++ (and C), functions can have a "void" return type, meaning they don't return anything.
This plugin adds a return tag in the doxygen comments for this kind of functions though.

To Reproduce
Create a c++ file, for example foo.h containing:
void foo();

Put your cursor on the function and press "Ctrl-D"

The following comment is generated:

/**
 * TODO
 *
 * @return TODO
 */

Expected behavior
The "return" tag should be omitted in this case:

/**
 * TODO
 */
@bartlibert bartlibert added the bug Something isn't working label Jul 10, 2019
@kkoomen
Copy link
Owner

kkoomen commented Jul 10, 2019

Thank you for submitting this issue. This issue has been fixed and merged into master in v1.2.3.

@kkoomen kkoomen closed this as completed Jul 10, 2019
kkoomen added a commit that referenced this issue Jul 12, 2019
kkoomen added a commit that referenced this issue Jul 12, 2019
@kkoomen kkoomen self-assigned this Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants