@@ -5367,11 +5367,11 @@ static void valueFlowConditionExpressions(const TokenList &tokenlist, const Symb
53675367 if (is1) {
53685368 const bool isBool = astIsBool (condTok2) || Token::Match (condTok2, " %comp%|%oror%|&&" );
53695369 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (1 , condTok2, /* assume*/ true , !isBool), tokenlist, settings); // don't set '1' for non-boolean expressions
5370- valueFlowGenericForward (startTok, startTok->link (), a1 , tokenlist, errorLogger, settings);
5370+ valueFlowGenericForward (startTok, startTok->link (), std::move (a1) , tokenlist, errorLogger, settings);
53715371 }
53725372
53735373 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (0 , condTok2, true ), tokenlist, settings);
5374- valueFlowGenericForward (startTok, startTok->link (), a2 , tokenlist, errorLogger, settings);
5374+ valueFlowGenericForward (startTok, startTok->link (), std::move (a2) , tokenlist, errorLogger, settings);
53755375 }
53765376 }
53775377
@@ -5382,11 +5382,11 @@ static void valueFlowConditionExpressions(const TokenList &tokenlist, const Symb
53825382 startTok = startTok->link ()->tokAt (2 );
53835383 for (const Token* condTok2:conds) {
53845384 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (0 , condTok2, false ), tokenlist, settings);
5385- valueFlowGenericForward (startTok, startTok->link (), a1 , tokenlist, errorLogger, settings);
5385+ valueFlowGenericForward (startTok, startTok->link (), < std::move (a1) , tokenlist, errorLogger, settings);
53865386
53875387 if (is1) {
53885388 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (1 , condTok2, false ), tokenlist, settings);
5389- valueFlowGenericForward (startTok, startTok->link (), a2 , tokenlist, errorLogger, settings);
5389+ valueFlowGenericForward (startTok, startTok->link (), std::move (a2) , tokenlist, errorLogger, settings);
53905390 }
53915391 }
53925392 }
@@ -5402,11 +5402,11 @@ static void valueFlowConditionExpressions(const TokenList &tokenlist, const Symb
54025402 }
54035403 for (const Token* condTok2:conds) {
54045404 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (0 , condTok2, false ), tokenlist, settings);
5405- valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , a1 , tokenlist, errorLogger, settings);
5405+ valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , std::move (a1) , tokenlist, errorLogger, settings);
54065406
54075407 if (is1) {
54085408 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (1 , condTok2, false ), tokenlist, settings);
5409- valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , a2 , tokenlist, errorLogger, settings);
5409+ valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , std::move (a2) , tokenlist, errorLogger, settings);
54105410 }
54115411 }
54125412 }
@@ -7552,7 +7552,7 @@ static void valueFlowInjectParameter(TokenList& tokenlist,
75527552{
75537553 const bool r = productParams (settings, vars, [&](const std::unordered_map<const Variable*, ValueFlow::Value>& arg) {
75547554 MultiValueFlowAnalyzer a (arg, tokenlist, settings);
7555- valueFlowGenericForward (const_cast <Token*>(functionScope->bodyStart ), functionScope->bodyEnd , a , tokenlist, errorLogger, settings);
7555+ valueFlowGenericForward (const_cast <Token*>(functionScope->bodyStart ), functionScope->bodyEnd , std::move (a) , tokenlist, errorLogger, settings);
75567556 });
75577557 if (!r) {
75587558 std::string fname = " <unknown>" ;
@@ -8087,7 +8087,7 @@ static void valueFlowUninit(TokenList& tokenlist, ErrorLogger* const errorLogger
80878087 continue ;
80888088 }
80898089 MemberExpressionAnalyzer analyzer (memVar.nameToken ()->str (), tok, uninitValue, tokenlist, settings);
8090- valueFlowGenericForward (start, tok->scope ()->bodyEnd , analyzer, tokenlist, errorLogger, settings);
8090+ valueFlowGenericForward (start, tok->scope ()->bodyEnd , std::move ( analyzer) , tokenlist, errorLogger, settings);
80918091
80928092 for (auto && p : *analyzer.partialReads ) {
80938093 Token* tok2 = p.first ;
0 commit comments