Lines Matching refs:file_path

73   const char *file_path;  variable
259 total_lines_num (const char *file_path) in total_lines_num() argument
263 if (linemap_get_file_highest_location (line_table, file_path, &l)) in total_lines_num()
277 lookup_file_in_cache_tab (const char *file_path) in lookup_file_in_cache_tab() argument
279 if (file_path == NULL) in lookup_file_in_cache_tab()
289 if (c->file_path && !strcmp (c->file_path, file_path)) in lookup_file_in_cache_tab()
307 diagnostics_file_cache_forcibly_evict_file (const char *file_path) in diagnostics_file_cache_forcibly_evict_file() argument
309 gcc_assert (file_path); in diagnostics_file_cache_forcibly_evict_file()
311 fcache *r = lookup_file_in_cache_tab (file_path); in diagnostics_file_cache_forcibly_evict_file()
316 r->file_path = NULL; in diagnostics_file_cache_forcibly_evict_file()
344 bool c_is_empty = (c->file_path == NULL); in evicted_cache_tab_entry()
347 || (to_evict->file_path && c_is_empty)) in evicted_cache_tab_entry()
374 add_file_to_cache_tab (const char *file_path) in add_file_to_cache_tab() argument
377 FILE *fp = fopen (file_path, "r"); in add_file_to_cache_tab()
383 r->file_path = file_path; in add_file_to_cache_tab()
394 r->total_lines = total_lines_num (file_path); in add_file_to_cache_tab()
406 lookup_or_add_file_to_cache_tab (const char *file_path) in lookup_or_add_file_to_cache_tab() argument
408 fcache *r = lookup_file_in_cache_tab (file_path); in lookup_or_add_file_to_cache_tab()
410 r = add_file_to_cache_tab (file_path); in lookup_or_add_file_to_cache_tab()
418 : use_count (0), file_path (NULL), fp (NULL), data (0), in fcache()
751 location_get_source_line (const char *file_path, int line) in location_get_source_line() argument
759 fcache *c = lookup_or_add_file_to_cache_tab (file_path); in location_get_source_line()
775 location_missing_trailing_newline (const char *file_path) in location_missing_trailing_newline() argument
777 fcache *c = lookup_or_add_file_to_cache_tab (file_path); in location_missing_trailing_newline()