From 9a5e53032da0c7769d13ddca946523911f4370c1 Mon Sep 17 00:00:00 2001 From: Ken-Patrick Lehrmann Date: Wed, 20 May 2020 21:33:29 +0200 Subject: [PATCH] Update matchcompiler after change in Token::Match (#2653) The change in token.cpp was done in f6788c047 This should fix the failures in travis. Co-authored-by: Ken-Patrick Lehrmann --- tools/matchcompiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 412d5d250..6e333cffe 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->isKeyword())' + return '(tok->isName() && tok->varId()==0U && (tok->str() != "delete" || !tok->isKeyword()))' elif tok == '%name%': return 'tok->isName()' elif tok == '%var%':