Tokenizer::setVarIdNew: don't treat '(sizeof *p)' as a variable declaration

This commit is contained in:
Daniel Marjamäki 2012-04-22 11:06:56 +02:00
parent d63093d9bb
commit 8c8c9d5e5b
1 changed files with 1 additions and 0 deletions

View File

@ -2953,6 +2953,7 @@ void Tokenizer::setVarIdNew()
notstart.insert("goto");
notstart.insert("NOT");
notstart.insert("return");
notstart.insert("sizeof");
if (!isC()) {
const char *str[] = {"delete","friend","new","throw","using","virtual"};
notstart.insert(str, str+(sizeof(str)/sizeof(*str)));