From 005bb7c7478e259f4a9862270030197b7320b725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 29 Dec 2017 23:05:54 +0100 Subject: [PATCH] Replace Token::Match with Token::simpleMatch --- lib/tokenize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 8d30585a8..e7aae58ea 100755 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8367,7 +8367,7 @@ const Token * Tokenizer::findGarbageCode() const // Garbage templates.. if (isCPP()) { for (const Token *tok = tokens(); tok; tok = tok->next()) { - if (!Token::Match(tok, "template <")) + if (!Token::simpleMatch(tok, "template <")) continue; if (tok->previous() && !Token::Match(tok->previous(), "[:;{}]")) return tok; @@ -8387,7 +8387,7 @@ const Token * Tokenizer::findGarbageCode() const } if (!tok) return tok1; - if (Token::Match(tok->previous(), "template <")) + if (Token::simpleMatch(tok->previous(), "template <")) continue; if (!Token::Match(tok, ">|>>")) return tok1;