Skip to content

Commit bb3c979

Browse files
Update symboldatabase.cpp
1 parent 7f75553 commit bb3c979

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8035,8 +8035,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
80358035
}
80368036
}
80378037
//Is iterator fetching function called?
8038-
} else if (Token::simpleMatch(tok->astOperand1(), "::") &&
8039-
tok->astOperand2()) {
8038+
} else if (Token::simpleMatch(tok->astOperand1(), "::") && Token::Match(tok->astOperand2(), "%var%|.|[")) {
80408039
const Token* varTok = tok->astOperand2();
80418040
while (Token::simpleMatch(varTok, "["))
80428041
varTok = varTok->astOperand1();

0 commit comments

Comments
 (0)