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>
151 bool should_skip_bom);
181#define LOCATION_FILE(LOC) ((expand_location (LOC)).file)
182#define LOCATION_LINE(LOC) ((expand_location (LOC)).line)
183#define LOCATION_COLUMN(LOC)((expand_location (LOC)).column)
184#define LOCATION_LOCUS(LOC) \
185 ((IS_ADHOC_LOC (LOC)) ? get_location_from_adhoc_loc (line_table, LOC) \
187#define LOCATION_BLOCK(LOC) \
188 ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \
190#define RESERVED_LOCATION_P(LOC) \
191 (LOCATION_LOCUS (LOC) < RESERVED_LOCATION_COUNT)
271 void record_string_concatenation (
int num,
location_t *locs);
273 bool get_string_concatenation (
location_t loc,
283 friend void ::gt_ggc_mx_string_concat_db (
void *
x_p);
284 friend void ::gt_pch_nx_string_concat_db (
void *
x_p);
285 friend void ::gt_pch_p_16string_concat_db (
void *
this_obj,
void *
x_p,
289 hash_map <location_hash, string_concat *> *
m_table;
size_t m_n_elts
Definition input.h:116
const char * get_buffer() const
Definition input.h:91
char_span subspan(int offset, int n_elts) const
Definition input.h:100
char_span(const char *ptr, size_t n_elts)
Definition input.h:82
size_t length() const
Definition input.h:89
char * xstrdup() const
Definition input.h:109
char operator[](int idx) const
Definition input.h:93
const char * m_ptr
Definition input.h:115
file_cache_slot * lookup_or_add_file(const char *file_path)
Definition input.cc:536
static const size_t num_file_slots
Definition input.h:163
file_cache_slot * add_file(const char *file_path)
Definition input.cc:429
input_context in_context
Definition input.h:165
~file_cache()
Definition input.cc:522
file_cache_slot * lookup_file(const char *file_path)
Definition input.cc:315
bool missing_trailing_newline_p(const char *file_path)
Definition input.cc:359
file_cache_slot * evicted_cache_tab_entry(unsigned *highest_use_count)
Definition input.cc:389
file_cache_slot * m_file_slots
Definition input.h:164
char_span get_source_line(const char *file_path, int line)
Definition input.cc:932
file_cache()
Definition input.cc:514
char_span get_source_file_content(const char *file_path)
Definition input.cc:1048
void initialize_input_context(diagnostic_input_charset_callback ccb, bool should_skip_bom)
Definition input.cc:45
void forcibly_evict_file(const char *file_path)
Definition input.cc:342
void record_string_concatenation(int num, location_t *locs)
Definition input.cc:1563
string_concat_db()
Definition input.cc:1553
bool get_string_concatenation(location_t loc, int *out_num, location_t **out_locs)
Definition input.cc:1589
static location_t get_key_loc(location_t loc)
Definition input.cc:1617
hash_map< location_hash, string_concat * > * m_table
Definition input.h:289
string_concat(int num, location_t *locs)
Definition input.cc:1543
int m_num
Definition input.h:263
location_t * m_locs
Definition input.h:264
const char *(* diagnostic_input_charset_callback)(const char *)
Definition coretypes.h:163
#define GTY(x)
Definition coretypes.h:41
void(* gt_pointer_operator)(void *, void *, void *)
Definition coretypes.h:462
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
rtx offset
Definition postreload.cc:691
diagnostic_input_charset_callback ccb
Definition input.h:147
bool should_skip_bom
Definition input.h:148
#define gcc_assert(EXPR)
Definition system.h:821
#define bool
Definition system.h:893