MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getWarnInfo

Method getWarnInfo

lib/library.cpp:1547–1555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1545}
1546
1547const Library::WarnInfo* Library::getWarnInfo(const Token* ftok) const
1548{
1549 if (isNotLibraryFunction(ftok))
1550 return nullptr;
1551 const auto i = utils::as_const(mData->mFunctionwarn).find(getFunctionName(ftok));
1552 if (i == mData->mFunctionwarn.cend())
1553 return nullptr;
1554 return &i->second;
1555}
1556
1557bool Library::isCompliantValidationExpression(const char* p)
1558{

Callers 2

function_warnMethod · 0.80

Calls 1

findMethod · 0.45

Tested by 1

function_warnMethod · 0.64