Variable usage: fixed false positives for union member variables

This commit is contained in:
Daniel Marjamäki 2009-01-04 15:02:22 +00:00
parent a4d7ce1620
commit 0f4dd5ea7b
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ void CheckOther::functionVariableUsage()
if ( indentlevel <= 0 )
break;
}
else if ( Token::simpleMatch(tok, "struct {") )
else if ( Token::Match(tok, "struct|union|class {") )
{
while ( tok && tok->str() != "}" )
tok = tok->next();