Skip to content

Commit 7a6cd54

Browse files
committed
Fix [lib/tokenize.cpp:6184]: (warning) Found simple pattern inside Token::Match() call: ") {"
1 parent c5bfd21 commit 7a6cd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6181,7 +6181,7 @@ bool Tokenizer::simplifyCAlternativeTokens()
61816181
bool ret = false;
61826182
for (Token *tok = list.front(); tok; tok = tok->next()) {
61836183
if (tok->str() == "{") {
6184-
if (executableScopeLevel > 0 || Token::Match(tok->previous(), ") {"))
6184+
if (executableScopeLevel > 0 || Token::simpleMatch(tok->previous(), ") {"))
61856185
++executableScopeLevel;
61866186
continue;
61876187
}

0 commit comments

Comments
 (0)