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

Function astIsContainerString

lib/astutils.cpp:279–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279bool astIsContainerString(const Token* tok)
280{
281 if (!tok)
282 return false;
283 if (!tok->valueType())
284 return false;
285 const Library::Container* container = tok->valueType()->container;
286 if (!container)
287 return false;
288 return container->stdStringLike;
289}
290
291static std::pair<const Token*, const Library::Container*> getContainerFunction(const Token* tok, const Library& library)
292{

Callers 2

valueFlowContainerSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected