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

Function isLifetimeOwned

lib/valueflow.cpp:1721–1726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719}
1720
1721static bool isLifetimeOwned(const ValueType* vtParent)
1722{
1723 if (vtParent->container)
1724 return !vtParent->container->view;
1725 return vtParent->type == ValueType::CONTAINER;
1726}
1727
1728static bool isLifetimeOwned(const ValueType *vt, const ValueType *vtParent)
1729{

Callers 1

isLifetimeBorrowedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected