Skip to content

C++按照谷歌编程格式函数无法提取参数 #325

@NoneShell

Description

@NoneShell

描述bug
在vscode中设置了google编程格式,但是使用这个格式,对于C++函数参数,尤其是对于指针类型参数,无法正确提取参数
你得到的注释(必填):
如果C++使用Google编程格式,如下,无法正确解析函数参数

/**
 * @description: 
 * @param {*}
 * @return {*}
 */
char test(char* temp) {
    cout << temp << endl;
}

你生成的注释为:

预期的行为(必填):
如果使用如下,可以正确解析出来函数参数

/**
 * @description: 
 * @param {char} *temp
 * @return {*}
 */
char test(char *temp) {
    cout << temp << endl;
}

错误日志(选填):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions