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