Improvements to debug output (#3091)

This commit is contained in:
Paul Fultz II 2021-01-28 15:19:37 -06:00 committed by GitHub
parent e8b8cfec78
commit a9b7f0e27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)