From 1cbeec26c6bb991a3a4cd3d6c5d6db5a70b7df75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 30 Dec 2017 22:43:44 +0100 Subject: [PATCH] Replace Token::Match with Token::simpleMatch --- lib/templatesimplifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index d98006d15..68a442d17 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -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 templateParameters; TemplateSimplifier::getTemplateParametersInDeclaration(startToken->tokAt(2), templateParameters);