Skip to content

Commit 1820849

Browse files
Update tokenize.cpp
1 parent fd66b27 commit 1820849

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static bool isClassStructUnionEnumStart(const Token * tok)
108108
if (!Token::Match(tok->previous(), "class|struct|union|enum|%name%|>|>> {"))
109109
return false;
110110
const Token * tok2 = tok->previous();
111-
while (tok2 && !Token::Match(tok2, "class|struct|union|enum|{|}|)|;|>|>>"))
111+
while (tok2 && !Token::Match(tok2, "class|struct|union|enum|{|}|)|;"))
112112
tok2 = tok2->previous();
113113
return Token::Match(tok2, "class|struct|union|enum") && !Token::simpleMatch(tok2->tokAt(-1), "->");
114114
}

0 commit comments

Comments
 (0)