parent
22a5881bee
commit
be0fcefe1d
10
cfg/std.cfg
10
cfg/std.cfg
|
@ -21,11 +21,11 @@
|
|||
<function name="fgetc"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg></function>
|
||||
<function name="fgetpos"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg><arg nr="2"><not-null/><not-uninit/></arg></function>
|
||||
<function name="fgets">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1"><not-null/></arg>
|
||||
<arg nr="2"><not-uninit/><not-bool/><valid>0-</valid></arg>
|
||||
<arg nr="3"><not-null/><not-uninit/></arg>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1"><not-null/></arg>
|
||||
<arg nr="2"><not-uninit/><not-bool/><valid>0-</valid></arg>
|
||||
<arg nr="3"><not-null/><not-uninit/></arg>
|
||||
</function>
|
||||
<function name="fsetpos"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg><arg nr="2"><not-null/><not-uninit/></arg></function>
|
||||
|
||||
|
|
|
@ -1882,11 +1882,11 @@ bool CheckUninitVar::isMemberVariableUsage(const Token *tok, bool isPointer, boo
|
|||
else if (!isPointer && Token::Match(tok->previous(), "[(,] %var% [,)]") && isVariableUsage(tok, isPointer, alloc, _tokenizer->isCPP()))
|
||||
return true;
|
||||
|
||||
else if (_settings->experimental &&
|
||||
!isPointer &&
|
||||
Token::Match(tok->tokAt(-2), "[(,] & %var% [,)]") &&
|
||||
isVariableUsage(tok, isPointer, alloc, _tokenizer->isCPP()))
|
||||
return true;
|
||||
else if (_settings->experimental &&
|
||||
!isPointer &&
|
||||
Token::Match(tok->tokAt(-2), "[(,] & %var% [,)]") &&
|
||||
isVariableUsage(tok, isPointer, alloc, _tokenizer->isCPP()))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue