20#ifndef GCC_SUBSTRING_LOCATIONS_H
21#define GCC_SUBSTRING_LOCATIONS_H
55 int caret_idx,
int start_idx,
int end_idx)
86 const range_label *fmt_label,
88 const range_label *param_label,
89 const char *corrected_substring);
97 const char *singular_gmsgid,
98 const char *plural_gmsgid, va_list *
ap)
const
101 bool emit_warning (
int opt, const
char *gmsgid, ...) const
105 const
char *singular_gmsgid,
106 const
char *plural_gmsgid, ...) const
127 int start_idx,
int end_idx,
128 location_t *out_loc);
Definition substring-locations.h:47
tree m_string_type
Definition substring-locations.h:71
void set_caret_index(int caret_idx)
Definition substring-locations.h:59
int m_start_idx
Definition substring-locations.h:73
int get_caret_idx() const
Definition substring-locations.h:65
location_t get_fmt_string_loc() const
Definition substring-locations.h:63
int get_start_idx() const
Definition substring-locations.h:66
substring_loc(location_t fmt_string_loc, tree string_type, int caret_idx, int start_idx, int end_idx)
Definition substring-locations.h:54
int m_end_idx
Definition substring-locations.h:74
int get_end_idx() const
Definition substring-locations.h:67
int m_caret_idx
Definition substring-locations.h:72
tree get_string_type() const
Definition substring-locations.h:64
location_t m_fmt_string_loc
Definition substring-locations.h:70
const char * get_location(location_t *out_loc) const
Definition substring-locations.cc:294
union tree_node * tree
Definition coretypes.h:97
#define ATTRIBUTE_GCC_DIAG(m, n)
Definition diagnostic-core.h:67
struct type string_type
Definition gengtype.cc:489
static void const char va_list ap
Definition read-md.cc:205
Definition gengtype.h:252
const char * get_location_within_string(cpp_reader *pfile, file_cache &fc, string_concat_db *concats, location_t strloc, enum cpp_ttype type, int caret_idx, int start_idx, int end_idx, location_t *out_loc)
Definition input.cc:1827