Skip to content

Commit fbdf7e8

Browse files
Update tokenlist.cpp
1 parent 96d4a96 commit fbdf7e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ static bool iscpp11init_impl(const Token * const tok)
609609
if (Token::Match(nameToken, "]|*")) {
610610
const Token* tok2 = nameToken;
611611
if (tok2->link()) {
612-
while (tok2 && tok2->link())
612+
while (tok2 && precedes(tok2->link(), nameToken))
613613
tok2 = tok2->link()->previous();
614614
}
615615
else

0 commit comments

Comments
 (0)