Improvements to debug output (#3091)
This commit is contained in:
parent
e8b8cfec78
commit
a9b7f0e27b
|
@ -1669,6 +1669,8 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
|
||||||
out << "always ";
|
out << "always ";
|
||||||
break;
|
break;
|
||||||
case ValueFlow::Value::ValueKind::Inconclusive:
|
case ValueFlow::Value::ValueKind::Inconclusive:
|
||||||
|
out << "inconclusive ";
|
||||||
|
break;
|
||||||
case ValueFlow::Value::ValueKind::Possible:
|
case ValueFlow::Value::ValueKind::Possible:
|
||||||
out << "possible ";
|
out << "possible ";
|
||||||
break;
|
break;
|
||||||
|
@ -1767,7 +1769,7 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
|
||||||
out << "end=" << value.intvalue;
|
out << "end=" << value.intvalue;
|
||||||
break;
|
break;
|
||||||
case ValueFlow::Value::ValueType::LIFETIME:
|
case ValueFlow::Value::ValueType::LIFETIME:
|
||||||
out << "lifetime=" << value.tokvalue->str();
|
out << "lifetime=" << "(" << value.tokvalue->expressionString() << ")";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (value.indirect > 0)
|
if (value.indirect > 0)
|
||||||
|
|
Loading…
Reference in New Issue