Tokenizer::setVarIdNew: don't treat '(sizeof *p)' as a variable declaration
This commit is contained in:
parent
d63093d9bb
commit
8c8c9d5e5b
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue