more support for anonymous struct to symbol database

This commit is contained in:
Robert Reif 2011-03-29 07:47:39 -04:00
parent 678486f0db
commit b31da161a7
1 changed files with 1 additions and 1 deletions

View File

@ -1449,7 +1449,7 @@ void Scope::getVariableList()
else
break;
}
else if (Token::Match(tok, "union {") && Token::Match(tok->next()->link(), "} %var% ;"))
else if (Token::Match(tok, "struct|union {") && Token::Match(tok->next()->link(), "} %var% ;"))
{
tok = tok->next()->link()->next()->next();
continue;