minor tweak. use isNotLibraryFunction in Library to prevent false matches
This commit is contained in:
parent
c72047f6f5
commit
7bb9d2d2f3
|
@ -800,7 +800,8 @@ bool Library::isNotLibraryFunction(const Token *ftok) const
|
||||||
|
|
||||||
bool Library::isUseRetVal(const Token* ftok) const
|
bool Library::isUseRetVal(const Token* ftok) const
|
||||||
{
|
{
|
||||||
return (_useretval.find(functionName(ftok)) != _useretval.end());
|
return (!isNotLibraryFunction(ftok) &&
|
||||||
|
_useretval.find(functionName(ftok)) != _useretval.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Library::isnoreturn(const Token *ftok) const
|
bool Library::isnoreturn(const Token *ftok) const
|
||||||
|
|
Loading…
Reference in New Issue