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 "; 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)