Replace Token::Match with Token::simpleMatch

This commit is contained in:
Daniel Marjamäki 2017-12-30 22:43:44 +01:00
parent 81a7d759e4
commit 1cbeec26c6
1 changed files with 1 additions and 1 deletions

View File

@ -1397,7 +1397,7 @@ static bool matchSpecialization(const Token *templateDeclarationNameToken, const
const Token *startToken = (*it); const Token *startToken = (*it);
while (startToken->previous() && !Token::Match(startToken->previous(), "[;{}]")) while (startToken->previous() && !Token::Match(startToken->previous(), "[;{}]"))
startToken = startToken->previous(); startToken = startToken->previous();
if (!Token::Match(startToken, "template <")) if (!Token::simpleMatch(startToken, "template <"))
continue; continue;
std::vector<const Token *> templateParameters; std::vector<const Token *> templateParameters;
TemplateSimplifier::getTemplateParametersInDeclaration(startToken->tokAt(2), templateParameters); TemplateSimplifier::getTemplateParametersInDeclaration(startToken->tokAt(2), templateParameters);