Tokenizer::setVarId: A variable declaration can't start with the typedef keyword

This commit is contained in:
Daniel Marjamäki 2014-10-11 16:30:51 +02:00
parent a33f01a2df
commit 8c8e85d2db
1 changed files with 1 additions and 0 deletions

View File

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