From 0747bc7ba3de0ef274d96841eed0c998f363d88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 13 Apr 2020 13:37:34 +0200 Subject: [PATCH] Clang import; Ensure Function::arg is set --- lib/clangimport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 42a69c3b3..ba1a9489b 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -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