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 )
|
if ( indentlevel <= 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ( Token::simpleMatch(tok, "struct {") )
|
else if ( Token::Match(tok, "struct|union|class {") )
|
||||||
{
|
{
|
||||||
while ( tok && tok->str() != "}" )
|
while ( tok && tok->str() != "}" )
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
|
|
Loading…
Reference in New Issue