We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5507f commit ef65118Copy full SHA for ef65118
src/util/format_expr.cpp
@@ -456,6 +456,12 @@ void format_expr_configt::setup()
456
expr_map[ID_array] = compound;
457
expr_map[ID_struct] = compound;
458
459
+ expr_map[ID_array_of] =
460
+ [](std::ostream &os, const exprt &expr) -> std::ostream & {
461
+ const auto &array_of_expr = to_array_of_expr(expr);
462
+ return os << "array_of(" << format(array_of_expr.what()) << ')';
463
+ };
464
+
465
expr_map[ID_if] = [](std::ostream &os, const exprt &expr) -> std::ostream & {
466
const auto &if_expr = to_if_expr(expr);
467
return os << '(' << format(if_expr.cond()) << " ? "
0 commit comments