osprey-gcc-4.2.0/gcc/pretty-print.h File Reference

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

Include dependency graph for pretty-print.h:

This graph shows which files directly or indirectly include this file:

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 Documentation

#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.

#define pp_append_text ( PP,
B,
 )     pp_base_append_text (pp_base (PP), B, E)

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,
 )     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,
 )     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)

#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,
 )     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,
 ) 

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

Definition at line 29 of file pretty-print.h.

Referenced by pp_base_format().

#define pp_output_formatted_text ( PP   )     pp_base_output_formatted_text (pp_base (PP))

#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,
 ) 

Value:

do {                             \
     pp_character (PP, C);          \
     pp_space (PP);                 \
   } while (0)

Definition at line 257 of file pretty-print.h.

#define pp_set_line_maximum_length ( PP,
L   )     pp_base_set_line_maximum_length (pp_base (PP), L)

Definition at line 192 of file pretty-print.h.

#define pp_set_prefix ( PP,
P   )     pp_base_set_prefix (pp_base (PP), P)

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.

#define pp_string ( PP,
S   )     pp_base_string (pp_base (PP), S)

Definition at line 214 of file pretty-print.h.

#define pp_tree_identifier ( PP,
T   ) 

Value:

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,
 )     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,
 )     pp_scalar (PP, HOST_WIDEST_INT_PRINT_DEC, (HOST_WIDEST_INT) I)

Definition at line 272 of file pretty-print.h.

Referenced by dump_bb_header().

#define pp_wrapping_mode ( PP   )     pp_base (PP)->wrapping


Typedef Documentation

typedef unsigned int pp_flags

Definition at line 102 of file pretty-print.h.

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.


Enumeration Type Documentation

Enumerator:
DIAGNOSTICS_SHOW_PREFIX_ONCE 
DIAGNOSTICS_SHOW_PREFIX_NEVER 
DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 
DIAGNOSTICS_SHOW_PREFIX_ONCE 
DIAGNOSTICS_SHOW_PREFIX_NEVER 
DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 
DIAGNOSTICS_SHOW_PREFIX_ONCE 
DIAGNOSTICS_SHOW_PREFIX_NEVER 
DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 
DIAGNOSTICS_SHOW_PREFIX_ONCE 
DIAGNOSTICS_SHOW_PREFIX_NEVER 
DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 

Definition at line 46 of file pretty-print.h.

enum pp_padding

Enumerator:
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.


Function Documentation

void pp_base_append_text ( pretty_printer ,
const char *  ,
const char *   
)

void pp_base_character ( pretty_printer ,
int   
)

void pp_base_clear_output_area ( pretty_printer  ) 

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  ) 

void void void pp_base_flush ( pretty_printer  ) 

void pp_base_format ( pretty_printer ,
text_info  
)

void pp_base_format_verbatim ( pretty_printer ,
text_info  
)

const char* pp_base_formatted_text ( pretty_printer  ) 

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  ) 

void pp_base_maybe_space ( pretty_printer  ) 

Definition at line 613 of file pretty-print.c.

References pp_base, pp_none, and pp_space.

void pp_base_newline ( pretty_printer  ) 

void pp_base_output_formatted_text ( pretty_printer  ) 

int pp_base_remaining_character_count_for_line ( pretty_printer  ) 

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 *   
)

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   
)

void pp_printf ( pretty_printer ,
const char *  ,
  ... 
)

static pp_wrapping_mode_t pp_set_verbatim_wrapping_ ( pretty_printer pp  )  [inline, static]

void void pp_verbatim ( pretty_printer ,
const char *  ,
  ... 
)

void pp_write_text_to_stream ( pretty_printer pp  ) 


Generated on Wed Apr 8 15:41:54 2009 for Open64 by  doxygen 1.5.6