@@ -1972,7 +1972,7 @@ ValueFlow::Value ValueFlow::getLifetimeObjValue(const Token *tok, bool inconclus
1972
1972
template <class Predicate >
1973
1973
static std::vector<ValueFlow::LifetimeToken> getLifetimeTokens (const Token* tok,
1974
1974
bool escape,
1975
- ValueFlow::Value:: ErrorPath errorPath,
1975
+ ErrorPath errorPath,
1976
1976
Predicate pred,
1977
1977
const Settings& settings,
1978
1978
int depth = 20 )
@@ -2120,7 +2120,7 @@ static std::vector<ValueFlow::LifetimeToken> getLifetimeTokens(const Token* tok,
2120
2120
return {{tok, std::move (errorPath)}};
2121
2121
}
2122
2122
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)
2124
2124
{
2125
2125
return getLifetimeTokens (tok, escape, std::move (errorPath), [](const Token*) {
2126
2126
return false ;
@@ -2130,14 +2130,14 @@ std::vector<ValueFlow::LifetimeToken> ValueFlow::getLifetimeTokens(const Token*
2130
2130
bool ValueFlow::hasLifetimeToken (const Token* tok, const Token* lifetime, const Settings& settings)
2131
2131
{
2132
2132
bool result = false ;
2133
- getLifetimeTokens (tok, false , ValueFlow::Value:: ErrorPath{}, [&](const Token* tok2) {
2133
+ getLifetimeTokens (tok, false , ErrorPath{}, [&](const Token* tok2) {
2134
2134
result = tok2->exprId () == lifetime->exprId ();
2135
2135
return result;
2136
2136
}, settings);
2137
2137
return result;
2138
2138
}
2139
2139
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 )
2141
2141
{
2142
2142
std::vector<ValueFlow::LifetimeToken> lts = ValueFlow::getLifetimeTokens (tok, settings);
2143
2143
if (lts.size () != 1 )
@@ -2150,7 +2150,7 @@ static const Token* getLifetimeToken(const Token* tok, ValueFlow::Value::ErrorPa
2150
2150
return lts.front ().token ;
2151
2151
}
2152
2152
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)
2154
2154
{
2155
2155
const Token* tok2 = getLifetimeToken (tok, errorPath, settings, addressOf);
2156
2156
if (tok2 && tok2->variable ())
@@ -2160,7 +2160,7 @@ const Variable* ValueFlow::getLifetimeVariable(const Token* tok, ValueFlow::Valu
2160
2160
2161
2161
const Variable* ValueFlow::getLifetimeVariable (const Token* tok, const Settings& settings)
2162
2162
{
2163
- ValueFlow::Value:: ErrorPath errorPath;
2163
+ ErrorPath errorPath;
2164
2164
return getLifetimeVariable (tok, errorPath, settings, nullptr );
2165
2165
}
2166
2166
0 commit comments