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

lastLine generated before actual last line of comment #323

Open
JavinalCharles opened this issue Aug 29, 2023 · 1 comment
Open

lastLine generated before actual last line of comment #323

JavinalCharles opened this issue Aug 29, 2023 · 1 comment
Labels

Comments

@JavinalCharles
Copy link

Describe the bug
Whenever I type "/**" -which is the trigger- it generates a comment block, in some cases where the function I'm trying to document has a return type that is not void, or has template/function parameters, the last line, defined in "doxdocgen.c.lastLine" is generated 2 lines after @brief and before everything else.

In the code example below, my lastLine should be the 2nd line that is a long line of asterisks.

Code example

/**
template<typename T>
std::shared_ptr<T> addComponent();

Expected result

/***********************************************************************
* @brief 
* 
* @tparam T 
* @return 
************************************************************************/

Actual result

/***********************************************************************
* @brief 
* 
************************************************************************/
* @tparam T 
* @return 
*/
template<typename T>
std::shared_ptr<T> addComponent();

Screencaps
Screenshot from 2023-08-29 22-06-17

Your System:

  • OS: Linux
  • VS Code Version 1.81.1
  • Doxdocgen Code Version v1.4.0

Additional context
None

@JavinalCharles
Copy link
Author

I should add that the bug only seems to appear when I have the Generate On Type settings turned on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant