Stop counting arguments properly

This commit is contained in:
Daniel Marjamäki 2017-09-20 13:00:43 +02:00
parent 4318521fc1
commit 2103726d54
1 changed files with 2 additions and 0 deletions

View File

@ -420,6 +420,8 @@ bool isVariableChangedByFunctionCall(const Token *tok, const Settings *settings,
tok2 = tok2->link();
else if (tok2->str() == ",")
++numberOfArguments;
else if (tok2->str() == ")")
break;
}
const ::Scope *typeScope = tok->variable()->typeScope();
if (typeScope) {