From e7b5a776bdd16b176b8bdd8e88fd0cfa8be75951 Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Wed, 8 Jun 2022 09:24:20 +0200 Subject: [PATCH] Matchcompiler: Add missing makeConstString (#4179) --- tools/matchcompiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index c794f7c35..29ca714ae 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -108,7 +108,7 @@ class MatchCompiler: elif tok == '%str%': return '(tok->tokType() == Token::eString)' elif tok == '%type%': - return '(tok->isName() && tok->varId() == 0U && (tok->str() != "delete" || !tok->isKeyword()))' + return '(tok->isName() && tok->varId() == 0U && (tok->str() != MatchCompiler::makeConstString("delete") || !tok->isKeyword()))' elif tok == '%name%': return 'tok->isName()' elif tok == '%var%':