Tokenizer::setVarId: A variable declaration can't start with the typedef keyword
This commit is contained in:
parent
a33f01a2df
commit
8c8e85d2db
|
@ -2492,6 +2492,7 @@ void Tokenizer::setVarId()
|
||||||
notstart.insert("NOT");
|
notstart.insert("NOT");
|
||||||
notstart.insert("return");
|
notstart.insert("return");
|
||||||
notstart.insert("sizeof");
|
notstart.insert("sizeof");
|
||||||
|
notstart.insert("typedef");
|
||||||
if (!isC()) {
|
if (!isC()) {
|
||||||
static const char *str[] = {"delete","friend","new","throw","using","virtual","explicit"};
|
static const char *str[] = {"delete","friend","new","throw","using","virtual","explicit"};
|
||||||
notstart.insert(str, str+(sizeof(str)/sizeof(*str)));
|
notstart.insert(str, str+(sizeof(str)/sizeof(*str)));
|
||||||
|
|
Loading…
Reference in New Issue