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

Function isStdSmartPointer

lib/tokenize.cpp:10349–10353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10347}
10348
10349static bool isStdSmartPointer(const Token* tok, const Library& library)
10350{
10351 const Library::SmartPointer* ptr = library.detectSmartPointer(tok, /*withoutStd*/ true);
10352 return ptr && startsWith(ptr->name, "std::");
10353}
10354
10355static bool isLibraryType(const Token* tok, const Library& library)
10356{

Callers 1

simplifyNamespaceStdMethod · 0.85

Calls 2

detectSmartPointerMethod · 0.80
startsWithFunction · 0.70

Tested by

no test coverage detected