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

Method detectContainerOrIterator

lib/library.cpp:1454–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1452}
1453
1454const Library::Container* Library::detectContainerOrIterator(const Token* typeStart, bool* isIterator, bool withoutStd) const
1455{
1456 bool res;
1457 const Library::Container* c = detectContainerInternal(typeStart, Both, &res, withoutStd);
1458 if (c && isIterator)
1459 *isIterator = res;
1460 return c;
1461}
1462
1463bool Library::isContainerYield(const Token * const cond, Library::Container::Yield y, const std::string& fallback)
1464{

Callers 9

parsedeclFunction · 0.80
isStdContainerOrIteratorFunction · 0.80
checkMemsetMethod · 0.80
getContainerFunctionFunction · 0.80
containerMethod · 0.80

Calls

no outgoing calls

Tested by 1

containerMethod · 0.64