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

Method isnotnoreturn

lib/library.cpp:1814–1826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1812}
1813
1814bool Library::isnotnoreturn(const Token *ftok) const
1815{
1816 if (ftok->function() && ftok->function()->isAttributeNoreturn())
1817 return false;
1818 if (isNotLibraryFunction(ftok))
1819 return hasAnyTypeCheck(getFunctionName(ftok));
1820 const auto it = utils::as_const(mData->mNoReturn).find(getFunctionName(ftok));
1821 if (it == mData->mNoReturn.end())
1822 return false;
1823 if (it->second == LibraryData::FalseTrueMaybe::Maybe)
1824 return false;
1825 return it->second == LibraryData::FalseTrueMaybe::False;
1826}
1827
1828bool Library::markupFile(const std::string &path) const
1829{

Callers 5

checkReallocUsageMethod · 0.80
checkMissingReturnScopeFunction · 0.80
functionMethod · 0.80
function_namespaceMethod · 0.80
function_methodMethod · 0.80

Calls 3

functionMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by 3

functionMethod · 0.64
function_namespaceMethod · 0.64
function_methodMethod · 0.64