assign-if: Fixed token match
This commit is contained in:
parent
44926654a4
commit
b6153a00ee
|
@ -64,7 +64,7 @@ bool CheckAssignIf::assignIfParseScope(const Token * const assignTok,
|
|||
const MathLib::bigint num)
|
||||
{
|
||||
for (const Token *tok2 = startTok; tok2; tok2 = tok2->next()) {
|
||||
if (Token::Match(tok2, "[(,] &| %varid% [,)]"))
|
||||
if (Token::Match(tok2, "[(,] &| %varid% [,)]", varid))
|
||||
return true;
|
||||
if (tok2->str() == "}")
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue