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

Method getLifetimeTokens

lib/valueflow.cpp:1672–1677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1670}
1671
1672std::vector<ValueFlow::LifetimeToken> ValueFlow::getLifetimeTokens(const Token* tok, const Settings& settings, bool escape, ErrorPath errorPath)
1673{
1674 return getLifetimeTokens(tok, escape, std::move(errorPath), [](const Token*) {
1675 return false;
1676 }, settings);
1677}
1678
1679bool ValueFlow::hasLifetimeToken(const Token* tok, const Token* lifetime, const Settings& settings)
1680{

Callers

nothing calls this directly

Calls 1

getLifetimeTokensFunction · 0.85

Tested by

no test coverage detected