20#ifndef GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H
21#define GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H
34class test_context :
public context
43 start_span_cb (
const location_print_policy &,
45 expanded_location exploc);
51 report (
enum kind kind,
52 rich_location &richloc,
57 const
char *test_show_locus (rich_location &richloc);
61 void colorize_source (
bool val)
63 get_source_printing_options ().colorize_source_p = val;
65 void show_labels (
bool val)
67 get_source_printing_options ().show_labels_p = val;
69 void show_line_numbers (
bool val)
71 get_source_printing_options ().show_line_numbers_p = val;
73 void show_ruler (
bool val)
75 get_source_printing_options ().show_ruler_p = val;
77 void show_event_links (
bool val)
79 get_source_printing_options ().show_event_links_p = val;
81 void set_caret_char (
unsigned idx,
char ch)
83 gcc_assert (idx < rich_location::STATICALLY_ALLOCATED_RANGES);
84 get_source_printing_options ().caret_chars[idx] = ch;
#define ATTRIBUTE_GCC_DIAG(m, n)
Definition diagnostic-core.h:71
Definition coretypes.h:167
#define gcc_assert(EXPR)
Definition system.h:814