parent
cb509f1a8b
commit
7d63bdee6f
|
@ -1364,7 +1364,7 @@ void CheckUninitVar::valueFlowUninit()
|
|||
while (Token::simpleMatch(nextTok->astParent(), "."))
|
||||
nextTok = nextTok->astParent();
|
||||
nextTok = nextAfterAstRightmostLeaf(nextTok);
|
||||
if(nextTok == scope.bodyEnd)
|
||||
if (nextTok == scope.bodyEnd)
|
||||
break;
|
||||
tok = nextTok ? nextTok : tok;
|
||||
}
|
||||
|
|
|
@ -4443,7 +4443,7 @@ private:
|
|||
}
|
||||
|
||||
void uninitvar_nonmember() {
|
||||
valueFlowUninit( "struct Foo {\n"
|
||||
valueFlowUninit("struct Foo {\n"
|
||||
" int bar;\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
|
|
Loading…
Reference in New Issue