Replace Token::Match with Token::simpleMatch
This commit is contained in:
parent
fc1ac180e6
commit
005bb7c747
|
@ -8367,7 +8367,7 @@ const Token * Tokenizer::findGarbageCode() const
|
||||||
// Garbage templates..
|
// Garbage templates..
|
||||||
if (isCPP()) {
|
if (isCPP()) {
|
||||||
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
||||||
if (!Token::Match(tok, "template <"))
|
if (!Token::simpleMatch(tok, "template <"))
|
||||||
continue;
|
continue;
|
||||||
if (tok->previous() && !Token::Match(tok->previous(), "[:;{}]"))
|
if (tok->previous() && !Token::Match(tok->previous(), "[:;{}]"))
|
||||||
return tok;
|
return tok;
|
||||||
|
@ -8387,7 +8387,7 @@ const Token * Tokenizer::findGarbageCode() const
|
||||||
}
|
}
|
||||||
if (!tok)
|
if (!tok)
|
||||||
return tok1;
|
return tok1;
|
||||||
if (Token::Match(tok->previous(), "template <"))
|
if (Token::simpleMatch(tok->previous(), "template <"))
|
||||||
continue;
|
continue;
|
||||||
if (!Token::Match(tok, ">|>>"))
|
if (!Token::Match(tok, ">|>>"))
|
||||||
return tok1;
|
return tok1;
|
||||||
|
|
Loading…
Reference in New Issue