@@ -1972,7 +1972,7 @@ ValueFlow::Value ValueFlow::getLifetimeObjValue(const Token *tok, bool inconclus
19721972template <class Predicate >
19731973static std::vector<ValueFlow::LifetimeToken> getLifetimeTokens (const Token* tok,
19741974 bool escape,
1975- ValueFlow::Value:: ErrorPath errorPath,
1975+ ErrorPath errorPath,
19761976 Predicate pred,
19771977 const Settings& settings,
19781978 int depth = 20 )
@@ -2120,7 +2120,7 @@ static std::vector<ValueFlow::LifetimeToken> getLifetimeTokens(const Token* tok,
21202120 return {{tok, std::move (errorPath)}};
21212121}
21222122
2123- std::vector<ValueFlow::LifetimeToken> ValueFlow::getLifetimeTokens (const Token* tok, const Settings& settings, bool escape, ValueFlow::Value:: ErrorPath errorPath)
2123+ std::vector<ValueFlow::LifetimeToken> ValueFlow::getLifetimeTokens (const Token* tok, const Settings& settings, bool escape, ErrorPath errorPath)
21242124{
21252125 return getLifetimeTokens (tok, escape, std::move (errorPath), [](const Token*) {
21262126 return false ;
@@ -2130,14 +2130,14 @@ std::vector<ValueFlow::LifetimeToken> ValueFlow::getLifetimeTokens(const Token*
21302130bool ValueFlow::hasLifetimeToken (const Token* tok, const Token* lifetime, const Settings& settings)
21312131{
21322132 bool result = false ;
2133- getLifetimeTokens (tok, false , ValueFlow::Value:: ErrorPath{}, [&](const Token* tok2) {
2133+ getLifetimeTokens (tok, false , ErrorPath{}, [&](const Token* tok2) {
21342134 result = tok2->exprId () == lifetime->exprId ();
21352135 return result;
21362136 }, settings);
21372137 return result;
21382138}
21392139
2140- static const Token* getLifetimeToken (const Token* tok, ValueFlow::Value:: ErrorPath& errorPath, const Settings& settings, bool * addressOf = nullptr )
2140+ static const Token* getLifetimeToken (const Token* tok, ErrorPath& errorPath, const Settings& settings, bool * addressOf = nullptr )
21412141{
21422142 std::vector<ValueFlow::LifetimeToken> lts = ValueFlow::getLifetimeTokens (tok, settings);
21432143 if (lts.size () != 1 )
@@ -2150,7 +2150,7 @@ static const Token* getLifetimeToken(const Token* tok, ValueFlow::Value::ErrorPa
21502150 return lts.front ().token ;
21512151}
21522152
2153- const Variable* ValueFlow::getLifetimeVariable (const Token* tok, ValueFlow::Value:: ErrorPath& errorPath, const Settings& settings, bool * addressOf)
2153+ const Variable* ValueFlow::getLifetimeVariable (const Token* tok, ErrorPath& errorPath, const Settings& settings, bool * addressOf)
21542154{
21552155 const Token* tok2 = getLifetimeToken (tok, errorPath, settings, addressOf);
21562156 if (tok2 && tok2->variable ())
@@ -2160,7 +2160,7 @@ const Variable* ValueFlow::getLifetimeVariable(const Token* tok, ValueFlow::Valu
21602160
21612161const Variable* ValueFlow::getLifetimeVariable (const Token* tok, const Settings& settings)
21622162{
2163- ValueFlow::Value:: ErrorPath errorPath;
2163+ ErrorPath errorPath;
21642164 return getLifetimeVariable (tok, errorPath, settings, nullptr );
21652165}
21662166
0 commit comments