Clang import; Ensure Function::arg is set

This commit is contained in:
Daniel Marjamäki 2020-04-13 13:37:34 +02:00
parent e1543587e0
commit 0747bc7ba3
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ void clangimport::AstNode::createTokensFunctionDecl(TokenList *tokenList)
}
Token *par1 = addtoken(tokenList, "(");
if (!prev)
if (!function->arg)
function->arg = par1;
function->token = nameToken;
// Function arguments