提交 2ff39b16 编写于 作者: C cuijinyu

fix: <c> fix function pointer paramater name parse

上级 cdb5b1d1
......@@ -108,7 +108,7 @@ open class CFullIdentListener(fileName: String) : CAstBaseListener() {
}
val directDeclaratorType = directDeclarator.directDeclarator()::class.java.simpleName
if(directDeclaratorType == "IdentifierDirectDeclaratorContext") {
name = (directDeclarator.directDeclarator() as CParser.IdentifierDirectDeclaratorContext).Identifier().text
name = (directDeclarator.directDeclarator() as CParser.IdentifierDirectDeclaratorContext).Identifier().text + '*'
}
if (name != null && type != null) {
currentFunction.Parameters += CodeProperty(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册