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

Function astIsUniqueSmartPointer

lib/astutils.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245bool astIsUniqueSmartPointer(const Token* tok)
246{
247 if (!astIsSmartPointer(tok))
248 return false;
249 if (!tok->valueType()->smartPointer)
250 return false;
251 return tok->valueType()->smartPointer->unique;
252}
253
254bool astIsIterator(const Token *tok)
255{

Callers 3

hasUniqueOwnershipFunction · 0.85
valueFlowLifetimeFunction · 0.85
getParentLifetimeFunction · 0.85

Calls 1

astIsSmartPointerFunction · 0.85

Tested by

no test coverage detected