We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getKnownValueFromToken()
1 parent 829ddca commit ae5bc45Copy full SHA for ae5bc45
lib/valueflow.cpp
@@ -5657,7 +5657,7 @@ static const ValueFlow::Value* getKnownValueFromToken(const Token* tok)
5657
if (!tok)
5658
return nullptr;
5659
auto it = std::find_if(tok->values().begin(), tok->values().end(), [&](const ValueFlow::Value& v) {
5660
- return (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue()) && v.isKnown();
+ return v.isKnown() && (v.isIntValue() || v.isContainerSizeValue() || v.isFloatValue());
5661
});
5662
if (it == tok->values().end())
5663
0 commit comments