We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getKnownValueFromToken()
1 parent b793a80 commit 773444cCopy full SHA for 773444c
1 file changed
lib/valueflow.cpp
@@ -5745,7 +5745,7 @@ static const ValueFlow::Value* getKnownValueFromToken(const Token* tok)
5745
if (!tok)
5746
return nullptr;
5747
auto it = std::find_if(tok->values().begin(), tok->values().end(), [&](const ValueFlow::Value& v) {
5748
- return (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue()) && v.isKnown();
+ return v.isKnown() && (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue());
5749
});
5750
if (it == tok->values().end())
5751
0 commit comments