Running astyle [ci skip]
This commit is contained in:
parent
84ea0a2295
commit
c14bb9cd2e
|
@ -465,7 +465,8 @@ static PMEvaluateFunction evaluateAsInt(PMEvaluateFunction f, ValueFlow::Value::
|
||||||
const ValueFlow::Value* value = expr->getKnownValue(t);
|
const ValueFlow::Value* value = expr->getKnownValue(t);
|
||||||
if (!value)
|
if (!value)
|
||||||
value = programMemory->getValue(expr->exprId());
|
value = programMemory->getValue(expr->exprId());
|
||||||
if (value && value->valueType == t) {
|
if (value && value->valueType == t)
|
||||||
|
{
|
||||||
*result = value->intvalue;
|
*result = value->intvalue;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2388,9 +2388,9 @@ bool Token::hasKnownValue() const
|
||||||
bool Token::hasKnownValue(ValueFlow::Value::ValueType t) const
|
bool Token::hasKnownValue(ValueFlow::Value::ValueType t) const
|
||||||
{
|
{
|
||||||
return mImpl->mValues &&
|
return mImpl->mValues &&
|
||||||
std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), [&](const ValueFlow::Value& value) {
|
std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), [&](const ValueFlow::Value& value) {
|
||||||
return value.isKnown() && value.valueType == t;
|
return value.isKnown() && value.valueType == t;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const ValueFlow::Value* Token::getKnownValue(ValueFlow::Value::ValueType t) const
|
const ValueFlow::Value* Token::getKnownValue(ValueFlow::Value::ValueType t) const
|
||||||
|
|
|
@ -1394,7 +1394,8 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void iterator27()
|
void iterator27()
|
||||||
{ // #10378
|
{
|
||||||
|
// #10378
|
||||||
check("struct A {\n"
|
check("struct A {\n"
|
||||||
" int a;\n"
|
" int a;\n"
|
||||||
" int b;\n"
|
" int b;\n"
|
||||||
|
|
Loading…
Reference in New Issue