-
Notifications
You must be signed in to change notification settings - Fork 274
add more formatters #6724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add more formatters #6724
Conversation
This adds to_ternary_expr, to upcast expressions with three operands.
a3fb4dc
to
809faac
Compare
Codecov Report
@@ Coverage Diff @@
## develop #6724 +/- ##
========================================
Coverage 76.84% 76.85%
========================================
Files 1589 1589
Lines 183795 183846 +51
========================================
+ Hits 141238 141289 +51
Misses 42557 42557
Continue to review full report at Codecov.
|
src/util/format_type.cpp
Outdated
else if(id == "expression") | ||
{ | ||
const auto &expression_type = to_type_with_subtype(type); | ||
return os << format(expression_type.subtype()) << " expr"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git grep expression_typet
returns nothing. What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll drop it.
This fixes the formatter for pointer-typed constant expressions.
This adds a formatter to format_expr for array_of_exprt expressions.
This adds a formatter to format_expr for address_of_exprt expressions.
This adds formatters to format_expr for floating-point expressions.
809faac
to
9053c5f
Compare
This adds a set of additional formatters for
format_expr
.