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

Extension not picking actual function type #328

Open
Diegool07 opened this issue Nov 17, 2023 · 1 comment
Open

Extension not picking actual function type #328

Diegool07 opened this issue Nov 17, 2023 · 1 comment
Labels

Comments

@Diegool07
Copy link

Diegool07 commented Nov 17, 2023

Describe the bug
When typing just above a function '/**' and pressing enter, it tries to pick the function type. But in C++, usually private/public/protected prefixes are being used. So trying to autofill the @return parameter is just useless.

Code example

public string Exemple() 
{
}

Expected result

/**
 * @brief
 * 
 * @return string 
 */
public string Exemple() 
{
}

Actual result

/**
 * @brief
 * 
 * @return public
 */
public string Exemple() 
{
}

Screencaps
Not necessary

Your System:

  • OS: Windows 10
  • VS Code Version 1.84.2
  • Doxdocgen Code Version 1.4.0

Additional context

@Diegool07 Diegool07 added the bug label Nov 17, 2023
@Diegool07 Diegool07 changed the title Extension not picking actual funcion typ Extension not picking actual function type Nov 17, 2023
@r-downing
Copy link

public string Example() {}

is this even valid C++?

This works:

class Test {
   public:
       string Example() {}
};

produces

class Test {
    public:
    /**
     * @brief 
     * 
     * @return string 
     */
    string Example() {}
};

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

2 participants