Fix [lib/tokenize.cpp:6184]: (warning) Found simple pattern inside Token::Match() call: ") {"

This commit is contained in:
Matthias Krüger 2014-12-04 11:01:14 +01:00
parent c5bfd21d48
commit 7a6cd54059
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}