We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
setTokenValue()
1 parent 2b4bcc1 commit a58653fCopy full SHA for a58653f
1 file changed
lib/vf_settokenvalue.cpp
@@ -258,8 +258,9 @@ namespace ValueFlow
258
}
259
260
if (Token::simpleMatch(parent, "=") && astIsRHS(tok)) {
261
- setTokenValue(parent, value, settings);
262
- if (!value.isUninitValue())
+ const bool isUninit = value.isUninitValue();
+ setTokenValue(parent, std::move(value), settings);
263
+ if (!isUninit)
264
return;
265
266
0 commit comments