Variable usage: fixed false positives for union member variables
This commit is contained in:
parent
a4d7ce1620
commit
0f4dd5ea7b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue