@@ -5139,11 +5139,11 @@ static void valueFlowConditionExpressions(TokenList *tokenlist, SymbolDatabase*
51395139 if (is1) {
51405140 const bool isBool = astIsBool (condTok2) || Token::Match (condTok2, " %comp%|%oror%|&&" );
51415141 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (1 , condTok2, /* assume*/ true , !isBool), tokenlist); // don't set '1' for non-boolean expressions
5142- valueFlowGenericForward (startTok, startTok->link (), a1 , settings);
5142+ valueFlowGenericForward (startTok, startTok->link (), std::move (a1) , settings);
51435143 }
51445144
51455145 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (0 , condTok2, true ), tokenlist);
5146- valueFlowGenericForward (startTok, startTok->link (), a2 , settings);
5146+ valueFlowGenericForward (startTok, startTok->link (), std::move (a2) , settings);
51475147 }
51485148 }
51495149
@@ -5154,11 +5154,11 @@ static void valueFlowConditionExpressions(TokenList *tokenlist, SymbolDatabase*
51545154 startTok = startTok->link ()->tokAt (2 );
51555155 for (const Token* condTok2:conds) {
51565156 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (0 , condTok2, false ), tokenlist);
5157- valueFlowGenericForward (startTok, startTok->link (), a1 , settings);
5157+ valueFlowGenericForward (startTok, startTok->link (), std::move (a1) , settings);
51585158
51595159 if (is1) {
51605160 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (1 , condTok2, false ), tokenlist);
5161- valueFlowGenericForward (startTok, startTok->link (), a2 , settings);
5161+ valueFlowGenericForward (startTok, startTok->link (), std::move (a2) , settings);
51625162 }
51635163 }
51645164 }
@@ -5174,11 +5174,11 @@ static void valueFlowConditionExpressions(TokenList *tokenlist, SymbolDatabase*
51745174 }
51755175 for (const Token* condTok2:conds) {
51765176 SameExpressionAnalyzer a1 (condTok2, makeConditionValue (0 , condTok2, false ), tokenlist);
5177- valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , a1 , settings);
5177+ valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , std::move (a1) , settings);
51785178
51795179 if (is1) {
51805180 OppositeExpressionAnalyzer a2 (true , condTok2, makeConditionValue (1 , condTok2, false ), tokenlist);
5181- valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , a2 , settings);
5181+ valueFlowGenericForward (startTok->link ()->next (), scope2->bodyEnd , std::move (a2) , settings);
51825182 }
51835183 }
51845184 }
@@ -7208,7 +7208,7 @@ static void valueFlowInjectParameter(TokenList* tokenlist,
72087208{
72097209 const bool r = productParams (vars, [&](const std::unordered_map<const Variable*, ValueFlow::Value>& arg) {
72107210 MultiValueFlowAnalyzer a (arg, tokenlist, symboldatabase);
7211- valueFlowGenericForward (const_cast <Token*>(functionScope->bodyStart ), functionScope->bodyEnd , a , settings);
7211+ valueFlowGenericForward (const_cast <Token*>(functionScope->bodyStart ), functionScope->bodyEnd , std::move (a) , settings);
72127212 });
72137213 if (!r) {
72147214 std::string fname = " <unknown>" ;
@@ -7655,7 +7655,7 @@ static void valueFlowUninit(TokenList* tokenlist, SymbolDatabase* /*symbolDataba
76557655 continue ;
76567656 }
76577657 MemberExpressionAnalyzer analyzer (memVar.nameToken ()->str (), tok, uninitValue, tokenlist);
7658- valueFlowGenericForward (tok->next (), tok->scope ()->bodyEnd , analyzer, settings);
7658+ valueFlowGenericForward (tok->next (), tok->scope ()->bodyEnd , std::move ( analyzer) , settings);
76597659
76607660 for (auto && p : *analyzer.partialReads ) {
76617661 Token* tok2 = p.first ;
0 commit comments