We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84cfde commit fe0c851Copy full SHA for fe0c851
1 file changed
lib/tokenlist.cpp
@@ -1817,7 +1817,7 @@ static Token * createAstAtToken(Token *tok)
1817
}
1818
typetok = typetok->next();
1819
1820
- if (Token::Match(typetok, "%var% =") && typetok->varId())
+ if ((Token::Match(typetok, "%var% =") || Token::Match(typetok, "%var% {")) && typetok->varId())
1821
tok = typetok;
1822
1823
// Do not create AST for function declaration
0 commit comments