Rename print_spaces_filtered

print_spaces_filtered is now misnamed, because whether filtering
happens is up to the stream.  So, rename it.
This commit is contained in:
Tom Tromey 2022-01-02 11:53:15 -07:00
parent 6cb06a8cda
commit d0b1020bf1
17 changed files with 47 additions and 47 deletions

View file

@ -906,7 +906,7 @@ c_type_print_template_args (const struct type_print_options *flags,
gdb_puts (_("] "), stream);
}
/* Use 'print_spaces_filtered', but take into consideration the
/* Use 'print_spaces', but take into consideration the
type_print_options FLAGS in order to determine how many whitespaces
will be printed. */
@ -915,9 +915,9 @@ print_spaces_filtered_with_print_options
(int level, struct ui_file *stream, const struct type_print_options *flags)
{
if (!flags->print_offsets)
print_spaces_filtered (level, stream);
print_spaces (level, stream);
else
print_spaces_filtered (level + print_offset_data::indentation, stream);
print_spaces (level + print_offset_data::indentation, stream);
}
/* Output an access specifier to STREAM, if needed. LAST_ACCESS is the
@ -1175,7 +1175,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
if (flags->print_offsets)
podata->update (type, i, stream);
print_spaces_filtered (level + 4, stream);
print_spaces (level + 4, stream);
if (is_static)
gdb_printf (stream, "static ");
@ -1426,9 +1426,9 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
if (show > 0)
podata->finish (type, level, stream);
print_spaces_filtered (print_offset_data::indentation, stream);
print_spaces (print_offset_data::indentation, stream);
if (level == 0)
print_spaces_filtered (2, stream);
print_spaces (2, stream);
}
gdb_printf (stream, "%*s}", level, "");
@ -1639,7 +1639,7 @@ c_type_print_base_1 (struct type *type, struct ui_file *stream,
for (i = 0; i < len; i++)
{
QUIT;
print_spaces_filtered (level + 4, stream);
print_spaces (level + 4, stream);
/* We pass "show" here and not "show - 1" to get enum types
printed. There's no other way to see them. */
c_print_type_1 (type->field (i).type (),