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

not support comment generation for functions that return pointer #179

Closed
mano233 opened this issue Dec 3, 2020 · 2 comments
Closed

not support comment generation for functions that return pointer #179

mano233 opened this issue Dec 3, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mano233
Copy link

mano233 commented Dec 3, 2020

Describe the bug
The comment of the function that returns the pointer does not generate "@param"

Settings
use default setting

To Reproduce

  • Create file demo.cpp with:
int* fun1(int a,int b,int c){
    return nullptr;
}

int fun2(int a,int b,int c){
    return 0;
}
  • Start (neo)vim with command: <leader>d

Expected behavior
the fun1 should generate "@param",but.....
image

Output of vim --version

NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20201114-45415-1dcr9av/neovim-0.4.4/build/config -I/tmp/neovim-20201114-45415-1dcr9av/neovim-0.4.4/src -I/usr/local/include -I/tmp/neovim-20201114-45415-1dcr9av/neovim-0.4.4/deps-build/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20201114-45415-1dcr9av/neovim-0.4.4/build/src/nvim/auto -I/tmp/neovim-20201114-45415-1dcr9av/neovim-0.4.4/build/include
Compiled by brew@BigSur

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.4.4/share/nvim"

Run :checkhealth for more info
@mano233 mano233 added the bug Something isn't working label Dec 3, 2020
@kkoomen kkoomen self-assigned this Dec 18, 2020
@kkoomen
Copy link
Owner

kkoomen commented Dec 18, 2020

Indeed a bug, because I never thought about this scenario personally. I will fix this issue today somewhere or otherwise this weekend definitely.

@kkoomen
Copy link
Owner

kkoomen commented Dec 19, 2020

This bug has been fixed and released in v3.6.0.

Feel free to submit any new issues if you experience any unwanted behavior in the future. Thanks for your contribution.

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