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

Function containerYieldsElement

lib/checkstl.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84static bool containerYieldsElement(const Library::Container* container, const Token* parent)
85{
86 if (Token::Match(parent, ". %name% (")) {
87 const Library::Container::Yield yield = container->getYield(parent->strAt(1));
88 if (isElementAccessYield(yield))
89 return true;
90 }
91 return false;
92}
93
94static bool containerPopsElement(const Library::Container* container, const Token* parent)
95{

Callers 1

outOfBoundsMethod · 0.85

Calls 2

isElementAccessYieldFunction · 0.85
getYieldMethod · 0.80

Tested by

no test coverage detected