Home
last modified time | relevance | path

Searched refs:line_table (Results 1 – 25 of 161) sorted by relevance

1234567

/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Ddiagnostic-show-locus.c883 loc_a = get_location_from_adhoc_loc (line_table, loc_a); in compatible_locations_p()
885 loc_b = get_location_from_adhoc_loc (line_table, loc_b); in compatible_locations_p()
893 const line_map *map_a = linemap_lookup (line_table, loc_a); in compatible_locations_p()
896 const line_map *map_b = linemap_lookup (line_table, loc_b); in compatible_locations_p()
909 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p()
913 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p()
1030 source_range src_range = get_range_from_loc (line_table, loc_range->m_loc); in maybe_add_location_range()
2624 rich_location richloc (line_table,
2625 linemap_position_for_column (line_table,
2659 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 1); in test_layout_x_offset_display_utf8()
[all …]
H A Dedit-context.c957 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_before()
960 location_t start = linemap_position_for_column (line_table, 7); in test_applying_fixits_insert_before()
961 rich_location richloc (line_table, start); in test_applying_fixits_insert_before()
1012 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after()
1015 location_t start = linemap_position_for_column (line_table, 11); in test_applying_fixits_insert_after()
1016 location_t finish = linemap_position_for_column (line_table, 15); in test_applying_fixits_insert_after()
1018 rich_location richloc (line_table, field); in test_applying_fixits_insert_after()
1057 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after_at_line_end()
1060 location_t loc = linemap_position_for_column (line_table, 16); in test_applying_fixits_insert_after_at_line_end()
1061 rich_location richloc (line_table, loc); in test_applying_fixits_insert_after_at_line_end()
[all …]
H A Dinput.c127 class line_maps *line_table; variable
186 loc = linemap_unwind_to_first_non_reserved_loc (line_table, in expand_location_1()
190 loc = linemap_resolve_location (line_table, loc, lrk, &map); in expand_location_1()
220 xloc = linemap_expand_location (line_table, map, loc); in expand_location_1()
263 if (linemap_get_file_highest_location (line_table, file_path, &l)) in total_lines_num()
795 loc = linemap_resolve_location (line_table, loc, in is_location_from_builtin_token()
858 location = linemap_resolve_location (line_table, location, in expansion_point_location_if_in_system_header()
870 return linemap_resolve_location (line_table, location, in expansion_point_location()
895 location_t combined_loc = COMBINE_LOCATION_DATA (line_table, in make_location()
908 return COMBINE_LOCATION_DATA (line_table, pure_loc, src_range, NULL); in make_location()
[all …]
H A Dinput.h26 extern GTY(()) class line_maps *line_table;
102 ((IS_ADHOC_LOC (LOC)) ? get_location_from_adhoc_loc (line_table, LOC) \
105 ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \
123 return linemap_location_in_system_header_p (line_table, loc); in in_system_header_at()
132 return linemap_location_from_macro_expansion_p (line_table, loc); in from_macro_expansion_at()
142 return linemap_location_from_macro_definition_p (line_table, loc); in from_macro_definition_at()
148 return get_pure_location (line_table, loc); in get_pure_location()
156 return get_range_from_loc (line_table, loc).m_start; in get_start()
164 return get_range_from_loc (line_table, loc).m_finish; in get_finish()
H A Ddiagnostic.c643 linemap_resolve_location (line_table, where, in diagnostic_report_current_module()
656 map = linemap_included_from_linemap (line_table, map); in diagnostic_report_current_module()
931 (line_table, in update_effective_level_from_pragmas()
1266 rich_location richloc (line_table, location); in diagnostic_append_note()
1349 rich_location richloc (line_table, location); in emit_diagnostic()
1375 rich_location richloc (line_table, location); in emit_diagnostic_valist()
1387 rich_location richloc (line_table, location); in inform()
1414 rich_location richloc (line_table, location); in inform_n()
1429 rich_location richloc (line_table, input_location); in warning()
1445 rich_location richloc (line_table, location); in warning_at()
[all …]
H A Dtree-diagnostic.c110 map = linemap_lookup (line_table, where); in maybe_unwind_expanded_macro_loc()
135 where = linemap_unwind_toward_expansion (line_table, where, &map); in maybe_unwind_expanded_macro_loc()
183 linemap_resolve_location (line_table, iter->where, in maybe_unwind_expanded_macro_loc()
190 linemap_resolve_location (line_table, resolved_def_loc, in maybe_unwind_expanded_macro_loc()
215 linemap_resolve_location (line_table, in maybe_unwind_expanded_macro_loc()
H A Dopt-problem.cc182 = linemap_check_ordinary (linemap_add (line_table, LC_ENTER, false, in test_opt_result_failure_at()
184 linemap_line_start (line_table, 5, 100); in test_opt_result_failure_at()
187 const location_t line_5 = linemap_position_for_column (line_table, 10); in test_opt_result_failure_at()
191 = linemap_position_for_line_and_column (line_table, ord_map, 6, 12); in test_opt_result_failure_at()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Ddiagnostic-show-locus.cc939 loc_a = get_location_from_adhoc_loc (line_table, loc_a); in compatible_locations_p()
941 loc_b = get_location_from_adhoc_loc (line_table, loc_b); in compatible_locations_p()
949 const line_map *map_a = linemap_lookup (line_table, loc_a); in compatible_locations_p()
952 const line_map *map_b = linemap_lookup (line_table, loc_b); in compatible_locations_p()
964 = linemap_location_from_macro_definition_p (line_table, loc_a); in compatible_locations_p()
966 = linemap_location_from_macro_definition_p (line_table, loc_b); in compatible_locations_p()
974 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p()
978 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p()
1256 source_range src_range = get_range_from_loc (line_table, loc_range->m_loc); in maybe_add_location_range()
2930 rich_location richloc (line_table, in test_offset_impl()
[all …]
H A Dedit-context.cc963 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_before()
966 location_t start = linemap_position_for_column (line_table, 7); in test_applying_fixits_insert_before()
967 rich_location richloc (line_table, start); in test_applying_fixits_insert_before()
1018 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after()
1021 location_t start = linemap_position_for_column (line_table, 11); in test_applying_fixits_insert_after()
1022 location_t finish = linemap_position_for_column (line_table, 15); in test_applying_fixits_insert_after()
1024 rich_location richloc (line_table, field); in test_applying_fixits_insert_after()
1063 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after_at_line_end()
1066 location_t loc = linemap_position_for_column (line_table, 16); in test_applying_fixits_insert_after_at_line_end()
1067 rich_location richloc (line_table, loc); in test_applying_fixits_insert_after_at_line_end()
[all …]
H A Dinput.cc185 class line_maps *line_table; variable
239 loc = linemap_unwind_to_first_non_reserved_loc (line_table, in expand_location_1()
243 loc = linemap_resolve_location (line_table, loc, lrk, &map); in expand_location_1()
273 xloc = linemap_expand_location (line_table, map, loc); in expand_location_1()
317 if (linemap_get_file_highest_location (line_table, file_path, &l)) in total_lines_num()
942 loc = linemap_resolve_location (line_table, loc, in is_location_from_builtin_token()
1008 location_t xloc = linemap_resolve_location (line_table, location, in expansion_point_location_if_in_system_header()
1020 return linemap_resolve_location (line_table, location, in expansion_point_location()
1045 location_t combined_loc = COMBINE_LOCATION_DATA (line_table, in make_location()
1058 return COMBINE_LOCATION_DATA (line_table, pure_loc, src_range, NULL); in make_location()
[all …]
H A Dinput.h26 extern GTY(()) class line_maps *line_table;
172 ((IS_ADHOC_LOC (LOC)) ? get_location_from_adhoc_loc (line_table, LOC) \
175 ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \
193 return linemap_location_in_system_header_p (line_table, loc); in in_system_header_at()
202 return linemap_location_from_macro_expansion_p (line_table, loc); in from_macro_expansion_at()
212 return linemap_location_from_macro_definition_p (line_table, loc); in from_macro_definition_at()
218 return get_pure_location (line_table, loc); in get_pure_location()
226 return get_range_from_loc (line_table, loc).m_start; in get_start()
234 return get_range_from_loc (line_table, loc).m_finish; in get_finish()
H A Ddiagnostic.cc729 probe = linemap_included_from_linemap (line_table, map); in includes_seen()
755 linemap_resolve_location (line_table, where, in diagnostic_report_current_module()
769 map = linemap_included_from_linemap (line_table, map); in diagnostic_report_current_module()
1106 if (!linemap_location_before_p (line_table, pragloc, loc)) in update_effective_level_from_pragmas()
1265 rich_location richloc (line_table, loc); in warning_enabled_at()
1503 rich_location richloc (line_table, location); in diagnostic_append_note()
1586 rich_location richloc (line_table, location); in emit_diagnostic()
1612 rich_location richloc (line_table, location); in emit_diagnostic_valist()
1624 rich_location richloc (line_table, location); in inform()
1651 rich_location richloc (line_table, location); in inform_n()
[all …]
H A Dtree-diagnostic.cc110 map = linemap_lookup (line_table, where); in maybe_unwind_expanded_macro_loc()
135 where = linemap_unwind_toward_expansion (line_table, where, &map); in maybe_unwind_expanded_macro_loc()
183 linemap_resolve_location (line_table, iter->where, in maybe_unwind_expanded_macro_loc()
190 linemap_resolve_location (line_table, resolved_def_loc, in maybe_unwind_expanded_macro_loc()
215 linemap_resolve_location (line_table, in maybe_unwind_expanded_macro_loc()
H A Dggc-common.cc729 struct line_maps * old_line_table = line_table; in gt_pch_restore()
737 class line_maps *save_line_table = line_table; in gt_pch_restore()
751 line_table = old_line_table; in gt_pch_restore()
767 class line_maps *new_line_table = line_table; in gt_pch_restore()
768 line_table = save_line_table; in gt_pch_restore()
774 line_table = old_line_table; in gt_pch_restore()
787 line_table = old_line_table; in gt_pch_restore()
803 line_table = old_line_table; in gt_pch_restore()
810 line_table = old_line_table; in gt_pch_restore()
818 line_table = old_line_table; in gt_pch_restore()
[all …]
H A Dopt-problem.cc182 = linemap_check_ordinary (linemap_add (line_table, LC_ENTER, false, in test_opt_result_failure_at()
184 linemap_line_start (line_table, 5, 100); in test_opt_result_failure_at()
187 const location_t line_5 = linemap_position_for_column (line_table, 10); in test_opt_result_failure_at()
191 = linemap_position_for_line_and_column (line_table, ord_map, 6, 12); in test_opt_result_failure_at()
/netbsd-src/external/gpl3/gcc.old/dist/libcpp/
H A Ddirectives-only.c56 loc = pfile->line_table->highest_line; in _cpp_preprocess_dir_only()
91 class line_maps *line_table; in _cpp_preprocess_dir_only() local
108 line_table = pfile->line_table; in _cpp_preprocess_dir_only()
109 line_table->highest_location = line_table->highest_line; in _cpp_preprocess_dir_only()
115 cb->maybe_print_line (pfile->line_table->highest_line); in _cpp_preprocess_dir_only()
144 loc = linemap_position_for_column (pfile->line_table, col); in _cpp_preprocess_dir_only()
H A Dinternal.h70 const class line_maps *line_table = PFILE->line_table; \
72 LINEMAPS_LAST_ORDINARY_MAP (line_table); \
73 linenum_type line = SOURCE_LINE (map, line_table->highest_line); \
74 linemap_line_start (PFILE->line_table, line + 1, COLS_HINT); \
408 class line_maps *line_table; member
636 return pfile->line_table->depth == 1; in cpp_in_primary_file()
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-indentation.cc207 if (line_table->seen_line_directive) in should_warn_for_misleading_indentation()
267 if (linemap_location_from_macro_expansion_p (line_table, guard_loc)) in should_warn_for_misleading_indentation()
268 guard_loc = linemap_resolve_location (line_table, guard_loc, in should_warn_for_misleading_indentation()
270 if (linemap_location_from_macro_expansion_p (line_table, body_loc)) in should_warn_for_misleading_indentation()
271 body_loc = linemap_resolve_location (line_table, body_loc, in should_warn_for_misleading_indentation()
273 if (linemap_location_from_macro_expansion_p (line_table, next_stmt_loc)) in should_warn_for_misleading_indentation()
274 next_stmt_loc = linemap_resolve_location (line_table, next_stmt_loc, in should_warn_for_misleading_indentation()
282 = first_map_in_common (line_table, in should_warn_for_misleading_indentation()
286 = first_map_in_common (line_table, in should_warn_for_misleading_indentation()
294 guard_loc = linemap_resolve_location (line_table, guard_loc, in should_warn_for_misleading_indentation()
[all …]
H A Dc-pch.cc335 saved_loc = expand_location (line_table->highest_line); in c_common_read_pch()
336 saved_trace_includes = line_table->trace_includes; in c_common_read_pch()
343 cpp_set_line_map (pfile, line_table); in c_common_read_pch()
344 rebuild_location_adhoc_htab (line_table); in c_common_read_pch()
345 line_table->trace_includes = saved_trace_includes; in c_common_read_pch()
346 linemap_add (line_table, LC_ENTER, 0, saved_loc.file, saved_loc.line); in c_common_read_pch()
/netbsd-src/external/gpl3/gcc/dist/libcpp/
H A Dinit.cc184 class line_maps *line_table) in cpp_create_reader() argument
250 pfile->line_table = line_table; in cpp_create_reader()
303 cpp_set_line_map (cpp_reader *pfile, class line_maps *line_table) in cpp_set_line_map() argument
305 pfile->line_table = line_table; in cpp_set_line_map()
713 (LINEMAPS_LAST_MAP (pfile->line_table, false)); in cpp_read_main_file()
720 auto *map = LINEMAPS_LAST_ORDINARY_MAP (pfile->line_table); in cpp_read_main_file()
761 (LINEMAPS_LAST_MAP (pfile->line_table, false))[-1]; in read_original_filename()
765 pfile->line_table->highest_location in read_original_filename()
766 = pfile->line_table->highest_line in read_original_filename()
772 pfile->line_table->info_ordinary.used--; in read_original_filename()
[all …]
H A Dinternal.h72 const class line_maps *line_table = PFILE->line_table; \
74 LINEMAPS_LAST_ORDINARY_MAP (line_table); \
75 linenum_type line = SOURCE_LINE (map, line_table->highest_line); \
76 linemap_line_start (PFILE->line_table, line + 1, COLS_HINT); \
424 class line_maps *line_table; member
959 : rich_location (pfile->line_table, in encoding_rich_location()
966 : rich_location (pfile->line_table, loc) in encoding_rich_location()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-pch.c353 saved_loc = expand_location (line_table->highest_line); in c_common_read_pch()
354 saved_trace_includes = line_table->trace_includes; in c_common_read_pch()
361 cpp_set_line_map (pfile, line_table); in c_common_read_pch()
362 rebuild_location_adhoc_htab (line_table); in c_common_read_pch()
376 line_table->trace_includes = saved_trace_includes; in c_common_read_pch()
377 linemap_add (line_table, LC_ENTER, 0, saved_loc.file, saved_loc.line); in c_common_read_pch()
/netbsd-src/external/gpl3/gcc/dist/libcc1/
H A Dcontext.cc86 linemap_add (line_table, LC_ENTER, false, filename, line_number); in get_location_t()
87 location_t loc = linemap_line_start (line_table, line_number, 0); in get_location_t()
88 linemap_add (line_table, LC_LEAVE, false, NULL, 0); in get_location_t()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c/
H A Dc-errors.c40 rich_location richloc (line_table, location); in pedwarn_c11()
79 rich_location richloc (line_table, location); in pedwarn_c99()
119 rich_location richloc (line_table, location); in pedwarn_c90()
/netbsd-src/external/gpl3/gcc/dist/gcc/c/
H A Dc-errors.cc40 rich_location richloc (line_table, location); in pedwarn_c11()
79 rich_location richloc (line_table, location); in pedwarn_c99()
119 rich_location richloc (line_table, location); in pedwarn_c90()

1234567