#include "obstack.h"#include "input.h"


Go to the source code of this file.
Data Types | |
| type | text_info |
| type | chunk_info |
| type | output_buffer |
| type | pp_wrapping_mode_t |
| type | pretty_print_info |
Defines | |
| #define | PP_NL_ARGMAX 30 |
| #define | pp_line_cutoff(PP) pp_base (PP)->wrapping.line_cutoff |
| #define | pp_prefixing_rule(PP) pp_base (PP)->wrapping.rule |
| #define | pp_wrapping_mode(PP) pp_base (PP)->wrapping |
| #define | pp_format_decoder(PP) pp_base (PP)->format_decoder |
| #define | pp_needs_newline(PP) pp_base (PP)->need_newline |
| #define | pp_is_wrapping_line(PP) (pp_line_cutoff (PP) > 0) |
| #define | pp_indentation(PP) pp_base (PP)->indent_skip |
| #define | pp_set_line_maximum_length(PP, L) pp_base_set_line_maximum_length (pp_base (PP), L) |
| #define | pp_set_prefix(PP, P) pp_base_set_prefix (pp_base (PP), P) |
| #define | pp_destroy_prefix(PP) pp_base_destroy_prefix (pp_base (PP)) |
| #define | pp_remaining_character_count_for_line(PP) pp_base_remaining_character_count_for_line (pp_base (PP)) |
| #define | pp_clear_output_area(PP) pp_base_clear_output_area (pp_base (PP)) |
| #define | pp_formatted_text(PP) pp_base_formatted_text (pp_base (PP)) |
| #define | pp_last_position_in_text(PP) pp_base_last_position_in_text (pp_base (PP)) |
| #define | pp_emit_prefix(PP) pp_base_emit_prefix (pp_base (PP)) |
| #define | pp_append_text(PP, B, E) pp_base_append_text (pp_base (PP), B, E) |
| #define | pp_flush(PP) pp_base_flush (pp_base (PP)) |
| #define | pp_format(PP, TI) pp_base_format (pp_base (PP), TI) |
| #define | pp_output_formatted_text(PP) pp_base_output_formatted_text (pp_base (PP)) |
| #define | pp_format_verbatim(PP, TI) pp_base_format_verbatim (pp_base (PP), TI) |
| #define | pp_character(PP, C) pp_base_character (pp_base (PP), C) |
| #define | pp_string(PP, S) pp_base_string (pp_base (PP), S) |
| #define | pp_newline(PP) pp_base_newline (pp_base (PP)) |
| #define | pp_space(PP) pp_character (PP, ' ') |
| #define | pp_left_paren(PP) pp_character (PP, '(') |
| #define | pp_right_paren(PP) pp_character (PP, ')') |
| #define | pp_left_bracket(PP) pp_character (PP, '[') |
| #define | pp_right_bracket(PP) pp_character (PP, ']') |
| #define | pp_left_brace(PP) pp_character (PP, '{') |
| #define | pp_right_brace(PP) pp_character (PP, '}') |
| #define | pp_semicolon(PP) pp_character (PP, ';') |
| #define | pp_comma(PP) pp_string (PP, ", ") |
| #define | pp_dot(PP) pp_character (PP, '.') |
| #define | pp_colon(PP) pp_character (PP, ':') |
| #define | pp_colon_colon(PP) pp_string (PP, "::") |
| #define | pp_arrow(PP) pp_string (PP, "->") |
| #define | pp_equal(PP) pp_character (PP, '=') |
| #define | pp_question(PP) pp_character (PP, '?') |
| #define | pp_bar(PP) pp_character (PP, '|') |
| #define | pp_carret(PP) pp_character (PP, '^') |
| #define | pp_ampersand(PP) pp_character (PP, '&') |
| #define | pp_less(PP) pp_character (PP, '<') |
| #define | pp_greater(PP) pp_character (PP, '>') |
| #define | pp_plus(PP) pp_character (PP, '+') |
| #define | pp_minus(PP) pp_character (PP, '-') |
| #define | pp_star(PP) pp_character (PP, '*') |
| #define | pp_slash(PP) pp_character (PP, '/') |
| #define | pp_modulo(PP) pp_character (PP, '%') |
| #define | pp_exclamation(PP) pp_character (PP, '!') |
| #define | pp_complement(PP) pp_character (PP, '~') |
| #define | pp_quote(PP) pp_character (PP, '\'') |
| #define | pp_backquote(PP) pp_character (PP, '`') |
| #define | pp_doublequote(PP) pp_character (PP, '"') |
| #define | pp_newline_and_indent(PP, N) |
| #define | pp_maybe_newline_and_indent(PP, N) if (pp_needs_newline (PP)) pp_newline_and_indent (PP, N) |
| #define | pp_maybe_space(PP) pp_base_maybe_space (pp_base (PP)) |
| #define | pp_separate_with(PP, C) |
| #define | pp_scalar(PP, FORMAT, SCALAR) |
| #define | pp_decimal_int(PP, I) pp_scalar (PP, "%d", I) |
| #define | pp_wide_integer(PP, I) pp_scalar (PP, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I) |
| #define | pp_widest_integer(PP, I) pp_scalar (PP, HOST_WIDEST_INT_PRINT_DEC, (HOST_WIDEST_INT) I) |
| #define | pp_pointer(PP, P) pp_scalar (PP, "%p", P) |
| #define | pp_identifier(PP, ID) pp_string (PP, ID) |
| #define | pp_tree_identifier(PP, T) |
| #define | pp_unsupported_tree(PP, T) |
| #define | pp_buffer(PP) pp_base (PP)->buffer |
| #define | pp_base(PP) (PP) |
| #define | ATTRIBUTE_GCC_PPDIAG(m, n) ATTRIBUTE_NONNULL(m) |
| #define | pp_set_verbatim_wrapping(PP) pp_set_verbatim_wrapping_ (pp_base (PP)) |
Typedefs | |
| typedef unsigned int | pp_flags |
| typedef struct pretty_print_info | pretty_printer |
| typedef bool(* | printer_fn )(pretty_printer *, text_info *, const char *, int, bool, bool, bool) |
Enumerations | |
| enum | diagnostic_prefixing_rule_t { DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2 } |
| enum | pp_padding { pp_none, pp_before, pp_after, pp_none, pp_before, pp_after, pp_none, pp_before, pp_after, pp_none, pp_before, pp_after } |
Functions/Subroutines | |
| void | pp_construct (pretty_printer *, const char *, int) |
| void | pp_base_set_line_maximum_length (pretty_printer *, int) |
| void | pp_base_set_prefix (pretty_printer *, const char *) |
| void | pp_base_destroy_prefix (pretty_printer *) |
| int | pp_base_remaining_character_count_for_line (pretty_printer *) |
| void | pp_base_clear_output_area (pretty_printer *) |
| const char * | pp_base_formatted_text (pretty_printer *) |
| const char * | pp_base_last_position_in_text (const pretty_printer *) |
| void | pp_base_emit_prefix (pretty_printer *) |
| void | pp_base_append_text (pretty_printer *, const char *, const char *) |
| void | pp_printf (pretty_printer *, const char *,...) ATTRIBUTE_GCC_PPDIAG(2 |
| void void | pp_verbatim (pretty_printer *, const char *,...) ATTRIBUTE_GCC_PPDIAG(2 |
| void void void | pp_base_flush (pretty_printer *) |
| void | pp_base_format (pretty_printer *, text_info *) |
| void | pp_base_output_formatted_text (pretty_printer *) |
| void | pp_base_format_verbatim (pretty_printer *, text_info *) |
| void | pp_base_indent (pretty_printer *) |
| void | pp_base_newline (pretty_printer *) |
| void | pp_base_character (pretty_printer *, int) |
| void | pp_base_string (pretty_printer *, const char *) |
| void | pp_write_text_to_stream (pretty_printer *pp) |
| void | pp_base_maybe_space (pretty_printer *) |
| static pp_wrapping_mode_t | pp_set_verbatim_wrapping_ (pretty_printer *pp) |
| #define ATTRIBUTE_GCC_PPDIAG | ( | m, | |||
| n | ) | ATTRIBUTE_NONNULL(m) |
Definition at line 307 of file pretty-print.h.
| #define pp_ampersand | ( | PP | ) | pp_character (PP, '&') |
Definition at line 234 of file pretty-print.h.
Definition at line 204 of file pretty-print.h.
| #define pp_arrow | ( | PP | ) | pp_string (PP, "->") |
Definition at line 229 of file pretty-print.h.
| #define pp_backquote | ( | PP | ) | pp_character (PP, '`') |
Definition at line 245 of file pretty-print.h.
| #define pp_bar | ( | PP | ) | pp_character (PP, '|') |
Definition at line 232 of file pretty-print.h.
| #define pp_base | ( | PP | ) | (PP) |
Definition at line 289 of file pretty-print.h.
| #define pp_buffer | ( | PP | ) | pp_base (PP)->buffer |
Definition at line 286 of file pretty-print.h.
| #define pp_carret | ( | PP | ) | pp_character (PP, '^') |
Definition at line 233 of file pretty-print.h.
| #define pp_character | ( | PP, | |||
| C | ) | pp_base_character (pp_base (PP), C) |
Definition at line 213 of file pretty-print.h.
| #define pp_clear_output_area | ( | PP | ) | pp_base_clear_output_area (pp_base (PP)) |
Definition at line 198 of file pretty-print.h.
| #define pp_colon | ( | PP | ) | pp_character (PP, ':') |
Definition at line 227 of file pretty-print.h.
| #define pp_colon_colon | ( | PP | ) | pp_string (PP, "::") |
Definition at line 228 of file pretty-print.h.
| #define pp_comma | ( | PP | ) | pp_string (PP, ", ") |
Definition at line 225 of file pretty-print.h.
| #define pp_complement | ( | PP | ) | pp_character (PP, '~') |
Definition at line 243 of file pretty-print.h.
| #define pp_decimal_int | ( | PP, | |||
| I | ) | pp_scalar (PP, "%d", I) |
Definition at line 269 of file pretty-print.h.
| #define pp_destroy_prefix | ( | PP | ) | pp_base_destroy_prefix (pp_base (PP)) |
Definition at line 195 of file pretty-print.h.
| #define pp_dot | ( | PP | ) | pp_character (PP, '.') |
Definition at line 226 of file pretty-print.h.
| #define pp_doublequote | ( | PP | ) | pp_character (PP, '"') |
Definition at line 246 of file pretty-print.h.
| #define pp_emit_prefix | ( | PP | ) | pp_base_emit_prefix (pp_base (PP)) |
Definition at line 203 of file pretty-print.h.
| #define pp_equal | ( | PP | ) | pp_character (PP, '=') |
Definition at line 230 of file pretty-print.h.
| #define pp_exclamation | ( | PP | ) | pp_character (PP, '!') |
Definition at line 242 of file pretty-print.h.
| #define pp_flush | ( | PP | ) | pp_base_flush (pp_base (PP)) |
Definition at line 206 of file pretty-print.h.
| #define pp_format | ( | PP, | |||
| TI | ) | pp_base_format (pp_base (PP), TI) |
Definition at line 207 of file pretty-print.h.
Referenced by diagnostic_report_diagnostic(), pp_base_format_verbatim(), and pp_printf().
| #define pp_format_decoder | ( | PP | ) | pp_base (PP)->format_decoder |
Definition at line 139 of file pretty-print.h.
| #define pp_format_verbatim | ( | PP, | |||
| TI | ) | pp_base_format_verbatim (pp_base (PP), TI) |
Definition at line 210 of file pretty-print.h.
| #define pp_formatted_text | ( | PP | ) | pp_base_formatted_text (pp_base (PP)) |
Definition at line 200 of file pretty-print.h.
| #define pp_greater | ( | PP | ) | pp_character (PP, '>') |
Definition at line 236 of file pretty-print.h.
| #define pp_identifier | ( | PP, | |||
| ID | ) | pp_string (PP, ID) |
Definition at line 276 of file pretty-print.h.
| #define pp_indentation | ( | PP | ) | pp_base (PP)->indent_skip |
Definition at line 149 of file pretty-print.h.
| #define pp_is_wrapping_line | ( | PP | ) | (pp_line_cutoff (PP) > 0) |
Definition at line 146 of file pretty-print.h.
| #define pp_last_position_in_text | ( | PP | ) | pp_base_last_position_in_text (pp_base (PP)) |
Definition at line 201 of file pretty-print.h.
| #define pp_left_brace | ( | PP | ) | pp_character (PP, '{') |
Definition at line 222 of file pretty-print.h.
| #define pp_left_bracket | ( | PP | ) | pp_character (PP, '[') |
Definition at line 220 of file pretty-print.h.
| #define pp_left_paren | ( | PP | ) | pp_character (PP, '(') |
Definition at line 218 of file pretty-print.h.
| #define pp_less | ( | PP | ) | pp_character (PP, '<') |
Definition at line 235 of file pretty-print.h.
| #define pp_line_cutoff | ( | PP | ) | pp_base (PP)->wrapping.line_cutoff |
Definition at line 123 of file pretty-print.h.
| #define pp_maybe_newline_and_indent | ( | PP, | |||
| N | ) | if (pp_needs_newline (PP)) pp_newline_and_indent (PP, N) |
Definition at line 254 of file pretty-print.h.
| #define pp_maybe_space | ( | PP | ) | pp_base_maybe_space (pp_base (PP)) |
Definition at line 256 of file pretty-print.h.
| #define pp_minus | ( | PP | ) | pp_character (PP, '-') |
Definition at line 238 of file pretty-print.h.
| #define pp_modulo | ( | PP | ) | pp_character (PP, '%') |
Definition at line 241 of file pretty-print.h.
| #define pp_needs_newline | ( | PP | ) | pp_base (PP)->need_newline |
Definition at line 143 of file pretty-print.h.
| #define pp_newline | ( | PP | ) | pp_base_newline (pp_base (PP)) |
Definition at line 215 of file pretty-print.h.
| #define pp_newline_and_indent | ( | PP, | |||
| N | ) |
Value:
do { \ pp_indentation (PP) += N; \ pp_newline (PP); \ pp_base_indent (pp_base (PP)); \ pp_needs_newline (PP) = false; \ } while (0)
Definition at line 247 of file pretty-print.h.
| #define PP_NL_ARGMAX 30 |
| #define pp_output_formatted_text | ( | PP | ) | pp_base_output_formatted_text (pp_base (PP)) |
Definition at line 208 of file pretty-print.h.
Referenced by diagnostic_report_diagnostic(), pp_base_format_verbatim(), and pp_printf().
| #define pp_plus | ( | PP | ) | pp_character (PP, '+') |
Definition at line 237 of file pretty-print.h.
| #define pp_pointer | ( | PP, | |||
| P | ) | pp_scalar (PP, "%p", P) |
Definition at line 274 of file pretty-print.h.
| #define pp_prefixing_rule | ( | PP | ) | pp_base (PP)->wrapping.rule |
Definition at line 126 of file pretty-print.h.
| #define pp_question | ( | PP | ) | pp_character (PP, '?') |
Definition at line 231 of file pretty-print.h.
| #define pp_quote | ( | PP | ) | pp_character (PP, '\'') |
Definition at line 244 of file pretty-print.h.
| #define pp_remaining_character_count_for_line | ( | PP | ) | pp_base_remaining_character_count_for_line (pp_base (PP)) |
Definition at line 196 of file pretty-print.h.
| #define pp_right_brace | ( | PP | ) | pp_character (PP, '}') |
Definition at line 223 of file pretty-print.h.
| #define pp_right_bracket | ( | PP | ) | pp_character (PP, ']') |
Definition at line 221 of file pretty-print.h.
| #define pp_right_paren | ( | PP | ) | pp_character (PP, ')') |
Definition at line 219 of file pretty-print.h.
| #define pp_scalar | ( | PP, | |||
| FORMAT, | |||||
| SCALAR | ) |
Value:
do \ { \ sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \ pp_string (PP, pp_buffer (PP)->digit_buffer); \ } \ while (0)
Definition at line 262 of file pretty-print.h.
| #define pp_semicolon | ( | PP | ) | pp_character (PP, ';') |
Definition at line 224 of file pretty-print.h.
| #define pp_separate_with | ( | PP, | |||
| C | ) |
Value:
do { \ pp_character (PP, C); \ pp_space (PP); \ } while (0)
Definition at line 257 of file pretty-print.h.
Definition at line 192 of file pretty-print.h.
Definition at line 194 of file pretty-print.h.
| #define pp_set_verbatim_wrapping | ( | PP | ) | pp_set_verbatim_wrapping_ (pp_base (PP)) |
Definition at line 335 of file pretty-print.h.
Referenced by pp_base_format(), and pp_base_format_verbatim().
| #define pp_slash | ( | PP | ) | pp_character (PP, '/') |
Definition at line 240 of file pretty-print.h.
| #define pp_space | ( | PP | ) | pp_character (PP, ' ') |
Definition at line 217 of file pretty-print.h.
| #define pp_star | ( | PP | ) | pp_character (PP, '*') |
Definition at line 239 of file pretty-print.h.
Definition at line 214 of file pretty-print.h.
| #define pp_tree_identifier | ( | PP, | |||
| T | ) |
Value:
pp_append_text(PP, IDENTIFIER_POINTER (T), \ IDENTIFIER_POINTER (T) + IDENTIFIER_LENGTH (T))
Definition at line 277 of file pretty-print.h.
| #define pp_unsupported_tree | ( | PP, | |||
| T | ) |
Value:
pp_verbatim (pp_base (PP), "#%qs not supported by %s#", \ tree_code_name[(int) TREE_CODE (T)], __FUNCTION__)
Definition at line 281 of file pretty-print.h.
| #define pp_wide_integer | ( | PP, | |||
| I | ) | pp_scalar (PP, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I) |
Definition at line 270 of file pretty-print.h.
| #define pp_widest_integer | ( | PP, | |||
| I | ) | pp_scalar (PP, HOST_WIDEST_INT_PRINT_DEC, (HOST_WIDEST_INT) I) |
| #define pp_wrapping_mode | ( | PP | ) | pp_base (PP)->wrapping |
Definition at line 129 of file pretty-print.h.
Referenced by pp_base_format(), pp_base_format_verbatim(), and pp_set_verbatim_wrapping_().
| typedef unsigned int pp_flags |
Definition at line 102 of file pretty-print.h.
| typedef struct pretty_print_info pretty_printer |
Definition at line 134 of file pretty-print.h.
| typedef bool(* printer_fn)(pretty_printer *, text_info *, const char *, int, bool, bool, bool) |
Definition at line 135 of file pretty-print.h.
Definition at line 46 of file pretty-print.h.
| enum pp_padding |
| pp_none | |
| pp_before | |
| pp_after | |
| pp_none | |
| pp_before | |
| pp_after | |
| pp_none | |
| pp_before | |
| pp_after | |
| pp_none | |
| pp_before | |
| pp_after |
Definition at line 104 of file pretty-print.h.
| void pp_base_append_text | ( | pretty_printer * | , | |
| const char * | , | |||
| const char * | ||||
| ) |
Definition at line 502 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::line_length, pp_append_r(), pp_emit_prefix, and pp_is_wrapping_line.
| void pp_base_character | ( | pretty_printer * | , | |
| int | ||||
| ) |
Definition at line 589 of file pretty-print.c.
References pretty_print_info::buffer, ISSPACE, output_buffer::line_length, output_buffer::obstack, obstack_1grow, pp_is_wrapping_line, pp_newline, and pp_remaining_character_count_for_line.
| void pp_base_clear_output_area | ( | pretty_printer * | ) |
Definition at line 423 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::line_length, output_buffer::obstack, obstack_base, and obstack_free.
| void pp_base_destroy_prefix | ( | pretty_printer * | ) |
Definition at line 441 of file pretty-print.c.
References free(), NULL, and pretty_print_info::prefix.
Referenced by cp_diagnostic_finalizer(), and cp_print_error_function().
| void pp_base_emit_prefix | ( | pretty_printer * | ) |
Definition at line 452 of file pretty-print.c.
References DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE, DIAGNOSTICS_SHOW_PREFIX_NEVER, DIAGNOSTICS_SHOW_PREFIX_ONCE, pretty_print_info::emitted_prefix, NULL, pp_append_r(), pp_base_indent(), pp_indentation, pp_prefixing_rule, pretty_print_info::prefix, and strlen().
| void void void pp_base_flush | ( | pretty_printer * | ) |
Definition at line 402 of file pretty-print.c.
References pretty_print_info::buffer, fflush(), fputc(), pp_clear_state(), pp_needs_newline, pp_write_text_to_stream(), and output_buffer::stream.
| void pp_base_format | ( | pretty_printer * | , | |
| text_info * | ||||
| ) |
Definition at line 208 of file pretty-print.c.
References args, chunk_info::args, text_info::args_ptr, pretty_print_info::buffer, output_buffer::chunk_obstack, close_quote, output_buffer::cur_chunk_array, DECL_SOURCE_LOCATION, end, text_info::err_no, text_info::format_spec, output_buffer::formatted_obstack, gcc_assert, gcc_unreachable, HOST_WIDE_INT, HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_HEX, HOST_WIDE_INT_PRINT_UNSIGNED, ISDIGIT, output_buffer::line_length, text_info::locus, memset, n, NULL, output_buffer::obstack, obstack_1grow, obstack_grow, ok(), open_quote, p, pp_append_text, pp_character, pp_clear_state(), pp_format_decoder, pp_integer_with_precision, PP_NL_ARGMAX, pp_pointer, pp_scalar, pp_set_verbatim_wrapping, pp_string, pp_wide_integer, pp_wrapping_mode, chunk_info::prev, quote, s, strchr, strlen(), strtoul(), va_arg, XOBFINISH, XOBNEW, and xstrerror().
| void pp_base_format_verbatim | ( | pretty_printer * | , | |
| text_info * | ||||
| ) |
Definition at line 385 of file pretty-print.c.
References DIAGNOSTICS_SHOW_PREFIX_NEVER, pp_format, pp_format_text, pp_line_cutoff, pp_output_formatted_text, pp_prefixing_rule, pp_set_verbatim_wrapping, pp_wrapping_mode, and pretty_print_info::prefixing_rule.
| const char* pp_base_formatted_text | ( | pretty_printer * | ) |
Definition at line 518 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::obstack, obstack_1grow, and pp_formatted_text_data.
Referenced by mf_varname_tree().
| void pp_base_indent | ( | pretty_printer * | ) |
Definition at line 160 of file pretty-print.c.
References i, n, pp_indentation, and pp_space.
Referenced by pp_base_emit_prefix().
| const char* pp_base_last_position_in_text | ( | const pretty_printer * | ) |
Definition at line 527 of file pretty-print.c.
References pretty_print_info::buffer, NULL, output_buffer::obstack, obstack_base, obstack_next_free, and p.
| void pp_base_maybe_space | ( | pretty_printer * | ) |
| void pp_base_newline | ( | pretty_printer * | ) |
Definition at line 581 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::line_length, output_buffer::obstack, and obstack_1grow.
Referenced by cp_print_error_function(), and print_instantiation_partial_context().
| void pp_base_output_formatted_text | ( | pretty_printer * | ) |
Definition at line 555 of file pretty-print.c.
References args, chunk_info::args, output_buffer::chunk_obstack, output_buffer::cur_chunk_array, output_buffer::formatted_obstack, gcc_assert, output_buffer::line_length, output_buffer::obstack, obstack_free, pp_buffer, pp_string, and chunk_info::prev.
| int pp_base_remaining_character_count_for_line | ( | pretty_printer * | ) |
Definition at line 540 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::line_length, and pretty_print_info::maximum_length.
| void pp_base_set_line_maximum_length | ( | pretty_printer * | , | |
| int | ||||
| ) |
Definition at line 415 of file pretty-print.c.
References pp_line_cutoff, and pp_set_real_maximum_length().
| void pp_base_set_prefix | ( | pretty_printer * | , | |
| const char * | ||||
| ) |
Definition at line 431 of file pretty-print.c.
References pretty_print_info::emitted_prefix, pp_indentation, pp_set_real_maximum_length(), and pretty_print_info::prefix.
Referenced by cp_diagnostic_starter(), cp_print_error_function(), and cxx_print_error_function().
| void pp_base_string | ( | pretty_printer * | , | |
| const char * | ||||
| ) |
Definition at line 605 of file pretty-print.c.
References pp_maybe_wrap_text(), and strlen().
Referenced by cp_print_error_function(), and cp_printer().
| void pp_construct | ( | pretty_printer * | , | |
| const char * | , | |||
| int | ||||
| ) |
Definition at line 485 of file pretty-print.c.
References pretty_print_info::buffer, output_buffer::chunk_obstack, DIAGNOSTICS_SHOW_PREFIX_ONCE, output_buffer::formatted_obstack, memset, output_buffer::obstack, obstack_init, pp_line_cutoff, pp_prefixing_rule, pp_set_prefix, output_buffer::stream, xcalloc(), and XCNEW.
Referenced by diagnostic_initialize(), init_error(), maybe_init_pretty_print(), mf_varname_tree(), and print_c_tree().
| void pp_printf | ( | pretty_printer * | , | |
| const char * | , | |||
| ... | ||||
| ) |
| static pp_wrapping_mode_t pp_set_verbatim_wrapping_ | ( | pretty_printer * | pp | ) | [inline, static] |
Definition at line 328 of file pretty-print.h.
References DIAGNOSTICS_SHOW_PREFIX_NEVER, pp_line_cutoff, pp_prefixing_rule, and pp_wrapping_mode.
| void void pp_verbatim | ( | pretty_printer * | , | |
| const char * | , | |||
| ... | ||||
| ) |
Definition at line 564 of file pretty-print.c.
References text_info::args_ptr, text_info::err_no, errno, text_info::format_spec, pp_format_verbatim, va_end, and va_start.
| void pp_write_text_to_stream | ( | pretty_printer * | pp | ) |
Definition at line 97 of file pretty-print.c.
References pretty_print_info::buffer, fputs(), pp_clear_output_area, pp_formatted_text, and output_buffer::stream.
Referenced by dump_bb_end(), dump_bb_header(), dump_generic_node(), pp_base_flush(), and print_generic_decl().
1.5.6