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

Function getParentLifetimeObject

lib/astutils.cpp:658–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658static const Token* getParentLifetimeObject(const Token* tok)
659{
660 while (Token::simpleMatch(tok, "["))
661 tok = tok->astOperand1();
662 return tok;
663}
664
665const Token* getParentLifetime(const Token* tok, const Library& library)
666{

Callers 1

getParentLifetimeFunction · 0.85

Calls 2

astOperand1Method · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected