We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
setTokenValue()
1 parent ade5c87 commit 7cd6bfbCopy full SHA for 7cd6bfb
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