We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d23f2b commit a4d4089Copy full SHA for a4d4089
1 file changed
lib/tokenlist.cpp
@@ -1585,6 +1585,13 @@ static Token * createAstAtToken(Token *tok)
1585
if (Token::Match(tok2, "%var% [;,)]"))
1586
return tok2;
1587
}
1588
+ if (Token::Match(tok, "enum class| %name%| :")) {
1589
+ if (Token::simpleMatch(tok->next(), "class"))
1590
+ tok = tok->next();
1591
+ if (Token::Match(tok->next(), "%name%"))
1592
1593
+ return tok->next();
1594
+ }
1595
if (Token *const endTok = skipMethodDeclEnding(tok)) {
1596
Token *tok2 = tok;
1597
do {
0 commit comments