cschlosser / doxdocgen

Generate doxygen documentation from source code in VS Code
https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen
MIT License
258 stars 54 forks source link

Is it availalbe to recognize function name? #322

Open JongwooKim93 opened 11 months ago

JongwooKim93 commented 11 months ago

I'd like to set function name on first line at the doxygen commnt. Is there any macro with fuction name?

ex1)

/**
*  myfunc
*
*  @brief 
*  return bool
*/
bool myfunc()

ex2)

/**
*  myclass::myfunc
*
*  @brief 
*  return bool
*/
bool myclass::myfunc()
Henu-ZhangGao commented 10 months ago

There are only "Symbol,Pointer,Reference,ArraySubscript,OpenParenthesis,CloseParenthesis" etc in CppToken.ts file, and CppParseTree don't parse the functionName(Maybe it is diffcult?). So it is unavailable to recognize function name.