Fix corrupt Token::Match pattern
This commit is contained in:
parent
9647793af9
commit
89b9f57759
|
@ -1897,7 +1897,7 @@ void Tokenizer::combineStringAndCharLiterals()
|
|||
{
|
||||
// Combine wide strings and wide characters
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
if (Token::Match(tok, "[Lu] %char%|%string%")) {
|
||||
if (Token::Match(tok, "[Lu] %char%|%str%")) {
|
||||
// Combine 'L "string"' and 'L 'c''
|
||||
tok->str(tok->next()->str());
|
||||
tok->deleteNext();
|
||||
|
|
Loading…
Reference in New Issue