Use '%char%' matching in the tokenizer file.

This commit is contained in:
Edoardo Prezioso 2012-11-04 17:22:38 +01:00
parent 87c931b74b
commit c54eafdf69
1 changed files with 1 additions and 1 deletions

View File

@ -3059,7 +3059,7 @@ bool Tokenizer::simplifySizeof()
}
// sizeof('x')
if (Token::Match(tok, "sizeof ( %any% )") && tok->strAt(2)[0] == '\'') {
if (Token::Match(tok, "sizeof ( %char% )")) {
tok->deleteNext();
tok->deleteThis();
tok->deleteNext();