From d40314b825911421bef952f2b51e32510d3cf815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 12 Jan 2019 18:44:48 +0100 Subject: [PATCH] Replace Token::Match with Token::simpleMatch for simple patterns [ci skip] --- lib/templatesimplifier.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 1515cc4d6..2877dad0e 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -64,7 +64,7 @@ TemplateSimplifier::TokenAndName::TokenAndName(Token *tok, const std::string &s, isVariable(Token::Match(nameToken->next(), "=|;") || (nameToken->strAt(1) == "<" && Token::Match(nameToken->next()->findClosingBracket()->next(), "=|;"))); isAlias(paramEnd->strAt(1) == "using"); - isSpecialized(Token::Match(token, "template < >")); + isSpecialized(Token::simpleMatch(token, "template < >")); } if (token) @@ -511,7 +511,7 @@ bool TemplateSimplifier::getTemplateDeclarations() else if (tok2->str() == ")") break; // skip decltype(...) - else if (Token::Match(tok2, "decltype (")) + else if (Token::simpleMatch(tok2, "decltype (")) tok2 = tok2->linkAt(1); // Declaration => add to mTemplateForwardDeclarations else if (tok2->str() == ";") { @@ -926,7 +926,7 @@ bool TemplateSimplifier::getTemplateNamePositionTemplateFunction(const Token *to if (Token::Match(tok->next(), ";|{")) return false; // skip decltype(...) - else if (Token::Match(tok, "decltype (")) { + else if (Token::simpleMatch(tok, "decltype (")) { const Token * end = tok->linkAt(1); while (tok && tok != end) { tok = tok->next();