We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LifeTimeStore::byRef()
1 parent 1b90e6a commit 1c1994cCopy full SHA for 1c1994c
1 file changed
lib/valueflow.cpp
@@ -1313,12 +1313,12 @@ struct LifetimeStore {
1313
for (const ValueFlow::LifetimeToken& lt : ValueFlow::getLifetimeTokens(argtok, settings)) {
1314
if (!settings.certainty.isEnabled(Certainty::inconclusive) && lt.inconclusive)
1315
continue;
1316
- ErrorPath er = errorPath;
1317
- er.insert(er.end(), lt.errorPath.cbegin(), lt.errorPath.cend());
1318
if (!lt.token)
1319
return false;
1320
if (!pred(lt.token))
1321
+ ErrorPath er = errorPath;
+ er.insert(er.end(), lt.errorPath.cbegin(), lt.errorPath.cend());
1322
er.emplace_back(argtok, message);
1323
1324
ValueFlow::Value value;
0 commit comments