Fix typo: %stype% => %type%

This commit is contained in:
Daniel Marjamäki 2019-05-15 09:06:27 +02:00
parent 2e7725dfa7
commit 21ec78d8a1
1 changed files with 1 additions and 1 deletions

View File

@ -3863,7 +3863,7 @@ void Tokenizer::createLinks2()
const bool isScoped = Token::simpleMatch(token->tokAt(-2), "::") || const bool isScoped = Token::simpleMatch(token->tokAt(-2), "::") ||
(Token::Match(token->tokAt(-2), "; %name% <") && usingNames.count(token->previous()->str())); (Token::Match(token->tokAt(-2), "; %name% <") && usingNames.count(token->previous()->str()));
const bool isTemplateDecl = isScoped || Token::Match(token->tokAt(-2), "%name% %name% <"); const bool isTemplateDecl = isScoped || Token::Match(token->tokAt(-2), "%name% %name% <");
const bool isTemplateArgPointerType = Token::Match(token, "< %name%| %stype% * >"); const bool isTemplateArgPointerType = Token::Match(token, "< %name%| %type% * >");
if (!isTemplateDecl && !isTemplateArgPointerType) { if (!isTemplateDecl && !isTemplateArgPointerType) {
std::map<std::string, bool>::const_iterator it = templateNames.find(token->previous()->str()); std::map<std::string, bool>::const_iterator it = templateNames.find(token->previous()->str());
if (it == templateNames.end()) { if (it == templateNames.end()) {