22#ifndef GCC_TREE_DIAGNOSTIC_H
23#define GCC_TREE_DIAGNOSTIC_H
27#define diagnostic_abstract_origin(DI) \
28 ((tree) diagnostic_info_auxiliary_data (DI))
33#define diagnostic_last_function(DC) \
34 ((tree) diagnostic_context_auxiliary_data (DC))
38#define diagnostic_last_function_changed(DC, DI) \
39 (diagnostic_last_function (DC) != (diagnostic_abstract_origin (DI) \
40 ? diagnostic_abstract_origin (DI) \
41 : current_function_decl))
45#define diagnostic_set_last_function(DC, DI) \
46 diagnostic_context_auxiliary_data (DC) \
47 = (((DI) && diagnostic_abstract_origin (DI)) \
48 ? diagnostic_abstract_origin (DI) \
49 : current_function_decl)
Definition diagnostic.h:458
pretty_printer * m_printer
Definition diagnostic.h:697
Definition pretty-print-format-impl.h:300
Definition pretty-print.h:241
void set_output_stream(FILE *outfile)
Definition pretty-print.h:274
friend bool & pp_show_color(pretty_printer *pp)
Definition pretty-print.h:435
friend printer_fn & pp_format_decoder(pretty_printer *pp)
Definition pretty-print.h:441
Definition tree-diagnostic.h:63
tree_dump_pretty_printer(FILE *outf)
Definition tree-diagnostic.h:65
~tree_dump_pretty_printer()
Definition tree-diagnostic.h:72
diagnostic_context * global_dc
Definition diagnostic-global-context.cc:34
void pp_flush(pretty_printer *pp)
Definition pretty-print.cc:2288
Definition diagnostic.h:141
Definition gengtype.h:377
Definition pretty-print.h:34
bool default_tree_printer(pretty_printer *, text_info *, const char *, int, bool, bool, bool, bool *, pp_token_list &)
Definition tree-diagnostic.cc:57
void diagnostic_report_current_function(diagnostic_context *, const diagnostic_info *)
void tree_diagnostics_defaults(diagnostic_context *context)
Definition tree-diagnostic.cc:178