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

Function astContainerAction

lib/astutils.cpp:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303Library::Container::Action astContainerAction(const Token* tok, const Library& library, const Token** ftok)
304{
305 const auto ftokCont = getContainerFunction(tok, library);
306 if (ftok)
307 *ftok = ftokCont.first;
308 if (!ftokCont.first)
309 return Library::Container::Action::NO_ACTION;
310 return ftokCont.second->getAction(ftokCont.first->str());
311}
312
313Library::Container::Yield astContainerYield(const Token* tok, const Library& library, const Token** ftok)
314{

Callers 5

getUseRetValTypeMethod · 0.85
isnoreturnMethod · 0.85
isModifiedFunction · 0.85

Calls 3

getContainerFunctionFunction · 0.85
getActionMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected