We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getKnownValueFromToken()
1 parent 981656a commit e5113d2Copy full SHA for e5113d2
1 file changed
lib/valueflow.cpp
@@ -5907,7 +5907,7 @@ static const ValueFlow::Value* getKnownValueFromToken(const Token* tok)
5907
if (!tok)
5908
return nullptr;
5909
auto it = std::find_if(tok->values().begin(), tok->values().end(), [&](const ValueFlow::Value& v) {
5910
- return (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue()) && v.isKnown();
+ return v.isKnown() && (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue());
5911
});
5912
if (it == tok->values().end())
5913
0 commit comments