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

Function astContainerYield

lib/astutils.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313Library::Container::Yield astContainerYield(const Token* tok, const Library& library, const Token** ftok)
314{
315 const auto ftokCont = getContainerFunction(tok, library);
316 if (ftok)
317 *ftok = ftokCont.first;
318 if (!ftokCont.first)
319 return Library::Container::Yield::NO_YIELD;
320 return ftokCont.second->getYield(ftokCont.first->str());
321}
322
323Library::Container::Yield astFunctionYield(const Token* tok, const Library& library, const Token** ftok)
324{

Callers 11

getUseRetValTypeMethod · 0.85
isFunctionConstMethod · 0.85
isnoreturnMethod · 0.85
findIteratorYieldFunction · 0.85
valueFlowUninitMethod · 0.85
checkInnerScopeMethod · 0.85
isLocalContainerBufferFunction · 0.85
isExpressionChangedAtFunction · 0.85

Calls 3

getContainerFunctionFunction · 0.85
getYieldMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected