Skip to content

Commit fe0c851

Browse files
committed
fix
1 parent d84cfde commit fe0c851

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
@@ -1817,7 +1817,7 @@ static Token * createAstAtToken(Token *tok)
18171817
}
18181818
typetok = typetok->next();
18191819
}
1820-
if (Token::Match(typetok, "%var% =") && typetok->varId())
1820+
if ((Token::Match(typetok, "%var% =") || Token::Match(typetok, "%var% {")) && typetok->varId())
18211821
tok = typetok;
18221822

18231823
// Do not create AST for function declaration

0 commit comments

Comments
 (0)