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

Method forwardLifetime

lib/valueflow.cpp:2323–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2321 // cppcheck-suppress naming-privateMemberVariable
2322 Token* forwardTok{};
2323 void forwardLifetime(Token* tok, const TokenList& tokenlist, ErrorLogger& errorLogger, const Settings& settings) {
2324 forwardTok = tok;
2325 valueFlowForwardLifetime(tok, tokenlist, errorLogger, settings);
2326 }
2327};
2328
2329static bool hasBorrowingVariables(const std::list<Variable>& vars, const std::vector<const Token*>& args, int depth = 10)

Callers

nothing calls this directly

Calls 1

valueFlowForwardLifetimeFunction · 0.85

Tested by

no test coverage detected