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

Function astIsContainerView

lib/astutils.cpp:269–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269bool astIsContainerView(const Token* tok)
270{
271 const Library::Container* container = getLibraryContainer(tok);
272 return container && !astIsIterator(tok) && container->view;
273}
274
275bool astIsContainerOwned(const Token* tok) {
276 return astIsContainer(tok) && !astIsContainerView(tok);

Callers 6

unusedValueMethod · 0.85
isDecayedPointerFunction · 0.85
valueFlowLifetimeFunction · 0.85
checkVarLifetimeScopeMethod · 0.85
astIsContainerOwnedFunction · 0.85
getParentLifetimeFunction · 0.85

Calls 2

getLibraryContainerFunction · 0.85
astIsIteratorFunction · 0.85

Tested by

no test coverage detected