20#ifndef GCC_RICH_LOCATION_H
21#define GCC_RICH_LOCATION_H
23#include "rich-location.h"
36 : rich_location (
line_table, loc, nullptr, nullptr)
42 const range_label *label,
43 const char *highlight_color)
44 : rich_location (
line_table, loc, label, highlight_color)
52 const char *highlight_color);
57 const char *highlight_color);
84 bool restrict_to_current_line_spans =
true,
85 const range_label *label =
NULL);
120 location_t insertion_point,
132 label_text
get_text (
unsigned )
const final override
134 return label_text::borrow (
m_text);
Definition diagnostic.h:374
Definition genmatch.cc:845
Definition gcc-rich-location.h:30
gcc_rich_location(location_t loc, const range_label *label, const char *highlight_color)
Definition gcc-rich-location.h:41
void add_expr(tree expr, range_label *label, const char *highlight_color)
Definition gcc-rich-location.cc:45
void maybe_add_expr(tree t, range_label *label, const char *highlight_color)
Definition gcc-rich-location.cc:60
void add_fixit_insert_formatted(const char *content, location_t insertion_point, location_t indent)
Definition gcc-rich-location.cc:166
void add_fixit_misspelled_id(location_t misspelled_token_loc, tree hint_id)
Definition gcc-rich-location.cc:71
bool add_location_if_nearby(const diagnostic_context &ctxt, location_t loc, bool restrict_to_current_line_spans=true, const range_label *label=NULL)
Definition diagnostic-show-locus.cc:3191
gcc_rich_location(location_t loc)
Definition gcc-rich-location.h:35
Definition gcc-rich-location.h:128
label_text get_text(unsigned) const final override
Definition gcc-rich-location.h:132
const char * m_text
Definition gcc-rich-location.h:138
text_range_label(const char *text)
Definition gcc-rich-location.h:130
union tree_node * tree
Definition coretypes.h:97
static class line_maps * line_table
Definition genmatch.cc:55
#define NULL
Definition system.h:50