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);
|
||||
while (startToken->previous() && !Token::Match(startToken->previous(), "[;{}]"))
|
||||
startToken = startToken->previous();
|
||||
if (!Token::Match(startToken, "template <"))
|
||||
if (!Token::simpleMatch(startToken, "template <"))
|
||||
continue;
|
||||
std::vector<const Token *> templateParameters;
|
||||
TemplateSimplifier::getTemplateParametersInDeclaration(startToken->tokAt(2), templateParameters);
|
||||
|
|
Loading…
Reference in New Issue