Skip to content

Commit 605f042

Browse files
Update astutils.cpp
1 parent 2d6f23e commit 605f042

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/astutils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,6 +3114,8 @@ static const Token* findExpressionChangedImpl(const Token* expr,
31143114
if (vt->type == ValueType::ITERATOR)
31153115
++indirect;
31163116
}
3117+
if (indirect == 0 && tok2->astParent() && tok2->astParent()->isUnaryOp("*"))
3118+
++indirect;
31173119
for (int i = 0; i <= indirect; ++i) {
31183120
if (isExpressionChangedAt(tok, tok2, i, global, settings, depth))
31193121
return true;

0 commit comments

Comments
 (0)