Home | History | Annotate | Download | only in gcc

Lines Matching refs:line_table

185 class line_maps *line_table;
187 /* A stashed copy of "line_table" for use by selftest::line_table_test.
239 loc = linemap_unwind_to_first_non_reserved_loc (line_table,
243 loc = linemap_resolve_location (line_table, loc, lrk, &map);
273 xloc = linemap_expand_location (line_table, map, loc);
317 if (linemap_get_file_highest_location (line_table, file_path, &l))
942 loc = linemap_resolve_location (line_table, loc,
1008 location_t xloc = linemap_resolve_location (line_table, location,
1020 return linemap_resolve_location (line_table, location,
1045 location_t combined_loc = COMBINE_LOCATION_DATA (line_table,
1058 return COMBINE_LOCATION_DATA (line_table, pure_loc, src_range, NULL);
1078 /* Dump statistics to stderr about the memory usage of the line_table
1092 linemap_get_statistics (line_table, &s);
1140 SIZE_AMOUNT (line_table->num_optimized_ranges));
1142 SIZE_AMOUNT (line_table->num_unoptimized_ranges));
1211 /* Write a visualization of the locations in the line_table to STREAM. */
1221 for (unsigned int idx = 0; idx < LINEMAPS_ORDINARY_USED (line_table); idx++)
1223 location_t end_location = get_end_location (line_table, idx);
1227 = LINEMAPS_ORDINARY_MAP_AT (line_table, idx);
1263 = linemap_included_from_linemap (line_table, map);
1268 int (includer_map - line_table->info_ordinary.maps));
1277 gcc_assert (pure_location_p (line_table, loc) );
1280 = linemap_expand_location (line_table, map, loc);
1333 line_table->highest_location,
1334 LINEMAPS_MACRO_LOWEST_LOCATION (line_table));
1337 for (unsigned int i = 0; i < LINEMAPS_MACRO_USED (line_table); i++)
1345 ? (LINEMAPS_MACRO_USED (line_table) - (i + 1))
1347 const line_map_macro *map = LINEMAPS_MACRO_MAP_AT (line_table, idx);
1494 loc = linemap_resolve_location (line_table, loc, LRK_SPELLING_LOCATION,
1497 loc = get_range_from_loc (line_table, loc).m_start;
1561 if (line_table->seen_line_directive)
1578 source_range src_range = get_range_from_loc (line_table, strlocs[i]);
1580 if (src_range.m_start >= LINEMAPS_MACRO_LOWEST_LOCATION (line_table))
1644 linemap_resolve_location (line_table, src_range.m_start,
1647 linemap_resolve_location (line_table, src_range.m_finish,
1662 = linemap_position_for_line_and_column (line_table, final_ord_map,
1665 cpp_string_location_reader loc_reader (start_loc, line_table);
1822 loc = get_location_from_adhoc_loc (line_table, loc);
1863 - line_table->default_range_bits: some frontends use a non-zero value
1868 of column-tracking). We can exercise these by starting the line_table
1886 /* Constructor. Store the old value of line_table, and create a new
1892 saved_line_table = line_table;
1893 line_table = ggc_alloc<line_maps> ();
1894 linemap_init (line_table, BUILTINS_LOCATION);
1896 line_table->reallocator = saved_line_table->reallocator;
1898 line_table->round_alloc_size = saved_line_table->round_alloc_size;
1899 line_table->default_range_bits = 0;
1902 /* Constructor. Store the old value of line_table, and create a new
1908 saved_line_table = line_table;
1909 line_table = ggc_alloc<line_maps> ();
1910 linemap_init (line_table, BUILTINS_LOCATION);
1912 line_table->reallocator = saved_line_table->reallocator;
1914 line_table->round_alloc_size = saved_line_table->round_alloc_size;
1915 line_table->default_range_bits = case_.m_default_range_bits;
1918 line_table->highest_location = case_.m_base_location;
1919 line_table->highest_line = case_.m_base_location;
1923 /* Destructor. Restore the old value of line_table. */
1928 line_table = saved_line_table;
1940 linemap_add (line_table, LC_ENTER, false, "foo.c", 0);
1942 linemap_line_start (line_table, 1, 100);
1943 location_t loc_a = linemap_position_for_column (line_table, 1);
1944 location_t loc_b = linemap_position_for_column (line_table, 23);
1946 linemap_line_start (line_table, 2, 100);
1947 location_t loc_c = linemap_position_for_column (line_table, 1);
1948 location_t loc_d = linemap_position_for_column (line_table, 17);
1951 linemap_line_start (line_table, 3, 2000);
1952 location_t loc_e = linemap_position_for_column (line_table, 700);
1955 linemap_line_start (line_table, 4, 0);
1956 location_t loc_back_to_short = linemap_position_for_column (line_table, 100);
1961 line_map_ordinary *map = LINEMAPS_LAST_ORDINARY_MAP (line_table);
1968 linemap_line_start (line_table, 5, 2000);
1971 = linemap_position_for_column (line_table, 2000);
1973 = linemap_position_for_column (line_table, 4097);
1975 = linemap_position_for_column (line_table, 4098);
1978 linemap_line_start (line_table, 6, 100);
1979 location_t loc_sane_again = linemap_position_for_column (line_table, 10);
1981 linemap_add (line_table, LC_LEAVE, false, NULL, 0);
1984 linemap_add (line_table, LC_ENTER, false, "bar.c", 0);
1985 linemap_line_start (line_table, 1, 200);
1986 location_t loc_f = linemap_position_for_column (line_table, 150);
1987 linemap_add (line_table, LC_LEAVE, false, NULL, 0);
2009 ASSERT_TRUE (pure_location_p (line_table, loc_a));
2014 ASSERT_FALSE (pure_location_p (line_table, range_c_b_d));
2015 ASSERT_EQ (loc_c, get_location_from_adhoc_loc (line_table, range_c_b_d));
2016 source_range src_range = get_range_from_loc (line_table, range_c_b_d);
2054 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 1);
2056 const location_t c11 = linemap_position_for_column (line_table, 11);
2057 const location_t c12 = linemap_position_for_column (line_table, 12);
2058 const location_t c13 = linemap_position_for_column (line_table, 13);
2059 const location_t c14 = linemap_position_for_column (line_table, 14);
2060 const location_t c21 = linemap_position_for_column (line_table, 21);
2163 source_range tok_range = get_range_from_loc (line_table, tok_loc);
2194 cpp_reader *parser = cpp_create_reader (CLK_GNUC89, NULL, line_table);
2404 /* Constructor. Override line_table with a new instance based on CASE_,
2411 m_parser (cpp_create_reader (CLK_GNUC99, NULL, line_table)),
3527 if (!should_have_column_data_p (line_table->highest_location))
3560 if (!should_have_column_data_p (line_table->highest_location))
3600 if (!should_have_column_data_p (line_table->highest_location))
3686 /* Zero means "don't override the default values for a new line_table". */
3714 we want to explore a test matrix of interesting line_table
3719 (a) line_table->default_range_bits == 0, and
3720 (b) line_table->default_range_bits == 5. */
3726 the starting location within line_table. */
3753 linemap_add (line_table, LC_ENTER, false, "foo.c", 0);
3754 linemap_line_start (line_table, 1, 100);
3755 location_t loc_a = linemap_line_start (line_table, 2578, 255);
3758 const line_map_ordinary *ordmap_a = LINEMAPS_LAST_ORDINARY_MAP (line_table);
3762 location_t loc_b = linemap_line_start (line_table, 404198, 512);
3767 const line_map_ordinary *ordmap_b = LINEMAPS_LAST_ORDINARY_MAP (line_table);