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)
58 int,
bool,
bool,
bool,
bool *,
const char **);
Definition diagnostic.h:374
Definition diagnostic-path.h:188
Definition pretty-print.h:244
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
Definition diagnostic.h:136
Definition pretty-print.h:34
void virt_loc_aware_diagnostic_finalizer(diagnostic_context *, const diagnostic_info *)
Definition tree-diagnostic.cc:243
void diagnostic_report_current_function(diagnostic_context *, const diagnostic_info *)
Definition tree-diagnostic.cc:37
void default_tree_diagnostic_path_printer(diagnostic_context *, const diagnostic_path *)
Definition tree-diagnostic-path.cc:891
void maybe_unwind_expanded_macro_loc(diagnostic_context *context, location_t where)
Definition tree-diagnostic.cc:101
bool default_tree_printer(pretty_printer *, text_info *, const char *, int, bool, bool, bool, bool *, const char **)
Definition tree-diagnostic.cc:251
void tree_diagnostics_defaults(diagnostic_context *context)
Definition tree-diagnostic.cc:372
json::value * default_tree_make_json_for_path(diagnostic_context *, const diagnostic_path *)
Definition tree-diagnostic-path.cc:959