32#define UNKNOWN_LOCATION ((location_t) 0)
35#define BUILTINS_LOCATION ((location_t) 1)
64#define location_hash int_hash<location_t, UNKNOWN_LOCATION, BUILTINS_LOCATION>
69class cpp_char_column_policy;
73 expanded_location exploc,
74 const cpp_char_column_policy &policy);
79extern expanded_location
81 enum location_aspect aspect
82 = LOCATION_ASPECT_CARET);
92#define LOCATION_FILE(LOC) ((expand_location (LOC)).file)
93#define LOCATION_LINE(LOC) ((expand_location (LOC)).line)
94#define LOCATION_COLUMN(LOC)((expand_location (LOC)).column)
95#define LOCATION_LOCUS(LOC) \
96 ((IS_ADHOC_LOC (LOC)) ? get_location_from_adhoc_loc (line_table, LOC) \
98#define LOCATION_BLOCK(LOC) \
99 ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \
101#define RESERVED_LOCATION_P(LOC) \
102 (LOCATION_LOCUS (LOC) < RESERVED_LOCATION_COUNT)
117 return linemap_location_in_system_header_p (
line_table, loc);
126 return linemap_location_from_macro_expansion_p (
line_table, loc);
136 return linemap_location_from_macro_definition_p (
line_table, loc);
150 return get_range_from_loc (
line_table, loc).m_start;
158 return get_range_from_loc (
line_table, loc).m_finish;
162 location_t start, location_t finish);
163extern location_t
make_location (location_t caret, source_range src_range);
186 location_t **out_locs);
194 friend void ::gt_ggc_mx_string_concat_db (
void *x_p);
195 friend void ::gt_pch_nx_string_concat_db (
void *x_p);
196 friend void ::gt_pch_p_16string_concat_db (
void *this_obj,
void *x_p,
200 hash_map <location_hash, string_concat *> *
m_table;
Definition file-cache.h:82
void record_string_concatenation(int num, location_t *locs)
Definition input.cc:748
string_concat_db()
Definition input.cc:738
bool get_string_concatenation(location_t loc, int *out_num, location_t **out_locs)
Definition input.cc:774
static location_t get_key_loc(location_t loc)
Definition input.cc:802
hash_map< location_hash, string_concat * > * m_table
Definition input.h:200
string_concat(int num, location_t *locs)
Definition input.cc:728
int m_num
Definition input.h:174
location_t * m_locs
Definition input.h:175
#define GTY(x)
Definition coretypes.h:41
void(* gt_pointer_operator)(void *, void *, void *)
Definition coretypes.h:475
static class line_maps * line_table
Definition genmatch.cc:65
Definition coretypes.h:167