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 ";
|
||||
break;
|
||||
case ValueFlow::Value::ValueKind::Inconclusive:
|
||||
out << "inconclusive ";
|
||||
break;
|
||||
case ValueFlow::Value::ValueKind::Possible:
|
||||
out << "possible ";
|
||||
break;
|
||||
|
@ -1767,7 +1769,7 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
|
|||
out << "end=" << value.intvalue;
|
||||
break;
|
||||
case ValueFlow::Value::ValueType::LIFETIME:
|
||||
out << "lifetime=" << value.tokvalue->str();
|
||||
out << "lifetime=" << "(" << value.tokvalue->expressionString() << ")";
|
||||
break;
|
||||
}
|
||||
if (value.indirect > 0)
|
||||
|
|
Loading…
Reference in New Issue