Fix [lib/tokenize.cpp:6184]: (warning) Found simple pattern inside Token::Match() call: ") {"
This commit is contained in:
parent
c5bfd21d48
commit
7a6cd54059
|
@ -6181,7 +6181,7 @@ bool Tokenizer::simplifyCAlternativeTokens()
|
|||
bool ret = false;
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
if (tok->str() == "{") {
|
||||
if (executableScopeLevel > 0 || Token::Match(tok->previous(), ") {"))
|
||||
if (executableScopeLevel > 0 || Token::simpleMatch(tok->previous(), ") {"))
|
||||
++executableScopeLevel;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue