Skip to content

Commit 6ac01b6

Browse files
Update astutils.cpp
1 parent 23cc32e commit 6ac01b6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/astutils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,8 +3101,7 @@ static const Token* findExpressionChangedImpl(const Token* expr,
31013101
}
31023102
bool global = false;
31033103
if (tok->variable()) {
3104-
global = !tok->variable()->isLocal() && !tok->variable()->isArgument() &&
3105-
!(tok->variable()->isMember() && !tok->variable()->isStatic());
3104+
global = !tok->variable()->isLocal() && !tok->variable()->isArgument();
31063105
} else if (tok->isIncompleteVar() && !tok->isIncompleteConstant()) {
31073106
global = true;
31083107
}

0 commit comments

Comments
 (0)