Tokenizer::setVarIdNew: Fixed TestTokenizer::varid38

This commit is contained in:
Daniel Marjamäki 2012-04-22 10:24:19 +02:00
parent e745d971c8
commit e39b7f1bfd
1 changed files with 1 additions and 0 deletions

View File

@ -2815,6 +2815,7 @@ static bool setVarIdParseDeclaration(const Token **tok, const std::map<std::stri
if (tok2->isName()) {
if (tok2->str() == "class" || tok2->str() == "struct" || tok2->str() == "union") {
hasstruct = true;
typeCount = 0;
} else if (!hasstruct && variableId.find(tok2->str()) != variableId.end()) {
++typeCount;
tok2 = tok2->next();