We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@param
void
Describe the bug
When using doge on a C void function, a @param is generated when it shouldn't be since void corresponds to no parameters/arguments.
Settings
let g:doge_doc_standard_python = 'google' let g:doge_comment_jump_modes = ['n', 's']
To Reproduce
doge.vim
set nocompatible set runtimepath^=/path/to/vim-doge filetype plugin indent on syntax on set hidden
vim -u doge.vim
Steps to reproduce the behavior:
test.c
echo "void bar(void);" > test.c
nvim -u doge.vim test.c
bar
<leader>d
/** * @brief [TODO:description] * * @param {name} [TODO:description] */ void bar(void);
Expected behavior
The following should have been the result of the previous steps:
/** * @brief [TODO:description] */ void bar(void);
Screenshots
None, the previous explanations should be sufficient.
Output of vim --version
vim --version
NVIM v0.6.0 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include Compiled by runner@fv-az65-618 Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim" Run :checkhealth for more info
The text was updated successfully, but these errors were encountered:
Why should vim-doge handle this? This seems a user-related issue. Unless void is mandatory in C when no parameters are expected, just omit the void.
Sorry, something went wrong.
Yes, void is mandatory in C if the function takes no arguments.
eb3180e
No branches or pull requests
Describe the bug
When using doge on a C
void
function, a@param
is generated when it shouldn't be sincevoid
corresponds to no parameters/arguments.Settings
To Reproduce
doge.vim
with:vim -u doge.vim
Steps to reproduce the behavior:
test.c
as follows:echo "void bar(void);" > test.c
nvim -u doge.vim test.c
bar
function prototype and hit<leader>d
.@param
. This should not be present since the function effectively has no parameters.Expected behavior
The following should have been the result of the previous steps:
Screenshots
None, the previous explanations should be sufficient.
Output of
vim --version
The text was updated successfully, but these errors were encountered: