Stop counting arguments properly
This commit is contained in:
parent
4318521fc1
commit
2103726d54
|
@ -420,6 +420,8 @@ bool isVariableChangedByFunctionCall(const Token *tok, const Settings *settings,
|
||||||
tok2 = tok2->link();
|
tok2 = tok2->link();
|
||||||
else if (tok2->str() == ",")
|
else if (tok2->str() == ",")
|
||||||
++numberOfArguments;
|
++numberOfArguments;
|
||||||
|
else if (tok2->str() == ")")
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
const ::Scope *typeScope = tok->variable()->typeScope();
|
const ::Scope *typeScope = tok->variable()->typeScope();
|
||||||
if (typeScope) {
|
if (typeScope) {
|
||||||
|
|
Loading…
Reference in New Issue