Skip to content

Commit 76a93f0

Browse files
committed
fix
1 parent 85ad191 commit 76a93f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ bool isVariableChanged(const Variable * var, const Settings &settings, int depth
30013001
const Token * start = var->declEndToken();
30023002
if (!start)
30033003
return false;
3004-
if (Token::Match(start, "; %varid% =", var->declarationId()))
3004+
if (Token::Match(start, "; %varid% =", var->declarationId()) && !Token::simpleMatch(start->previous(), ")"))
30053005
start = start->tokAt(2);
30063006
if (Token::simpleMatch(start, "=")) {
30073007
const Token* next = nextAfterAstRightmostLeafGeneric(start);

0 commit comments

Comments
 (0)