Matchcompiler: Add missing makeConstString (#4179)

This commit is contained in:
Rikard Falkeborn 2022-06-08 09:24:20 +02:00 committed by GitHub
parent e43d2b8a80
commit e7b5a776bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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%':