Fixed #1360 (false positive:: uninitialized class member of nested class inside a function)
This commit is contained in:
parent
7e2e20c2d3
commit
19589adc1d
|
@ -137,8 +137,12 @@ static const Token *checkExecutionPaths_(const Token *tok, std::list<ExecutionPa
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't parse into "struct type { .."
|
// don't parse into "struct type { .."
|
||||||
if (Token::Match(tok, "struct %type% {"))
|
if (Token::Match(tok, "struct|class %type% {|:"))
|
||||||
tok = tok->tokAt(2)->link();
|
{
|
||||||
|
while (tok && tok->str() != "{" && tok->str() != ";")
|
||||||
|
tok = tok->next();
|
||||||
|
tok = tok ? tok->link() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (Token::Match(tok, "= {"))
|
if (Token::Match(tok, "= {"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue