GCC Middle and Back End API Reference
pretty-print.h File Reference

Go to the source code of this file.

Data Structures

struct  text_info
struct  chunk_info
struct  output_buffer
struct  pp_wrapping_mode_t
struct  pretty_printer

Typedefs

typedef unsigned int pp_flags
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 }
enum  pp_padding { pp_none, pp_before, pp_after }

Functions

static const char * pp_get_prefix (const pretty_printer *pp)

Typedef Documentation

typedef unsigned int pp_flags
   The type of pretty-printer flags passed to clients.  
typedef bool(* printer_fn)(pretty_printer *, text_info *, const char *, int, bool, bool, bool)
   The type of a hook that formats client-specific data onto a pretty_pinter.
   A client-supplied formatter returns true if everything goes well,
   otherwise it returns false.  

Enumeration Type Documentation

   How often diagnostics are prefixed by their locations:
   o DIAGNOSTICS_SHOW_PREFIX_NEVER: never - not yet supported;
   o DIAGNOSTICS_SHOW_PREFIX_ONCE: emit only once;
   o DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE: emit each time a physical
   line is started.  
Enumerator:
DIAGNOSTICS_SHOW_PREFIX_ONCE 
DIAGNOSTICS_SHOW_PREFIX_NEVER 
DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 
enum pp_padding
Enumerator:
pp_none 
pp_before 
pp_after 

Function Documentation

static const char* pp_get_prefix ( const pretty_printer pp)
inlinestatic

Referenced by trim_filename().