We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LifetimeStore::byVal()
1 parent 0e8c953 commit ae7b70fCopy full SHA for ae7b70f
1 file changed
lib/valueflow.cpp
@@ -2391,12 +2391,12 @@ struct LifetimeStore {
2391
for (const ValueFlow::LifetimeToken& lt : ValueFlow::getLifetimeTokens(tok3, settings)) {
2392
if (!settings.certainty.isEnabled(Certainty::inconclusive) && lt.inconclusive)
2393
continue;
2394
- ErrorPath er = v.errorPath;
2395
- er.insert(er.end(), lt.errorPath.cbegin(), lt.errorPath.cend());
2396
if (!lt.token)
2397
return false;
2398
if (!pred(lt.token))
2399
+ ErrorPath er = v.errorPath;
+ er.insert(er.end(), lt.errorPath.cbegin(), lt.errorPath.cend());
2400
er.emplace_back(argtok, message);
2401
er.insert(er.end(), errorPath.cbegin(), errorPath.cend());
2402
0 commit comments