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

Function isStdContainerOrIterator

lib/tokenize.cpp:10343–10347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10341}
10342
10343static bool isStdContainerOrIterator(const Token* tok, const Library& library)
10344{
10345 const Library::Container* ctr = library.detectContainerOrIterator(tok, nullptr, /*withoutStd*/ true);
10346 return ctr && startsWith(ctr->startPattern, "std ::");
10347}
10348
10349static bool isStdSmartPointer(const Token* tok, const Library& library)
10350{

Callers 2

isLibraryTypeFunction · 0.85
simplifyNamespaceStdMethod · 0.85

Calls 2

startsWithFunction · 0.70

Tested by

no test coverage detected