microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.4k stars 1.51k forks source link

Doxygen comment generates "@param" for function with "void" parameter #11287

Open michelleangela opened 11 months ago

michelleangela commented 11 months ago

Environment

Bug Summary and Steps to Reproduce

Reported in issue https://github.com/microsoft/vscode-cpptools/issues/11282.

Bug Summary: Dogyxen generation comment creates @param for a function with void in parameter list.

Sample code:

int my_function(void)
{
return 0;
}

Steps to reproduce:

  1. Use sample code.
  2. Right-click on my_function
  3. Select "Generate Doxygen Comment"

Actual result:

/// @brief 
/// @param  
/// @return 
int my_function(void)
{
return 0;
}

Expected behavior:

/// @brief 
/// @return 
int my_function(void)
{
return 0;
}

Configuration and Logs

n/a

Other Extensions

No response

Additional context

No response

michelleangela commented 11 months ago

Internal bug number 1865319.