Replace Token::Match with Token::simpleMatch
This commit is contained in:
parent
81a7d759e4
commit
1cbeec26c6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue