Home
last modified time | relevance | path

Searched refs:exploc (Results 1 – 25 of 31) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-indentation.c49 get_visual_column (expanded_location exploc, location_t loc, in get_visual_column() argument
59 if (!exploc.column) in get_visual_column()
74 char_span line = location_get_source_line (exploc.file, exploc.line); in get_visual_column()
77 if ((size_t)exploc.column > line.length ()) in get_visual_column()
80 for (int i = 1; i < exploc.column; i++) in get_visual_column()
657 expanded_location exploc; in assert_get_visual_column_succeeds() local
658 exploc.file = file; in assert_get_visual_column_succeeds()
659 exploc.line = line; in assert_get_visual_column_succeeds()
660 exploc.column = column; in assert_get_visual_column_succeeds()
661 exploc.data = NULL; in assert_get_visual_column_succeeds()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-indentation.cc48 get_visual_column (expanded_location exploc, in get_visual_column() argument
53 char_span line = location_get_source_line (exploc.file, exploc.line); in get_visual_column()
56 if ((size_t)exploc.column > line.length ()) in get_visual_column()
59 for (int i = 1; i < exploc.column; i++) in get_visual_column()
694 expanded_location exploc; in assert_get_visual_column_succeeds() local
695 exploc.file = file; in assert_get_visual_column_succeeds()
696 exploc.line = line; in assert_get_visual_column_succeeds()
697 exploc.column = column; in assert_get_visual_column_succeeds()
698 exploc.data = NULL; in assert_get_visual_column_succeeds()
699 exploc.sysp = false; in assert_get_visual_column_succeeds()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgcc-rich-location.cc80 expanded_location exploc = expand_location (loc); in blank_line_before_p() local
81 char_span line = location_get_source_line (exploc.file, exploc.line); in blank_line_before_p()
84 if (line.length () < (size_t)exploc.column) in blank_line_before_p()
87 for (int column = 1; column < exploc.column; ++column) in blank_line_before_p()
H A Dselftest-diagnostic.cc57 expanded_location exploc) in start_span_cb() argument
59 exploc.file = "FILENAME"; in start_span_cb()
60 default_diagnostic_start_span_fn (context, exploc); in start_span_cb()
H A Ddiagnostic-format-json.cc49 expanded_location exploc = expand_location (loc); in json_from_expanded_location() local
51 if (exploc.file) in json_from_expanded_location()
52 result->set ("file", new json::string (exploc.file)); in json_from_expanded_location()
53 result->set ("line", new json::integer_number (exploc.line)); in json_from_expanded_location()
68 const int col = diagnostic_converted_column (context, exploc); in json_from_expanded_location()
H A Doptinfo-emit-json.cc196 expanded_location exploc = expand_location (loc); in location_to_json() local
198 obj->set ("file", new json::string (exploc.file)); in location_to_json()
199 obj->set ("line", new json::integer_number (exploc.line)); in location_to_json()
200 obj->set ("column", new json::integer_number (exploc.column)); in location_to_json()
H A Dinput.cc1066 location_compute_display_column (expanded_location exploc, in location_compute_display_column() argument
1069 if (!(exploc.file && *exploc.file && exploc.line && exploc.column)) in location_compute_display_column()
1070 return exploc.column; in location_compute_display_column()
1071 char_span line = location_get_source_line (exploc.file, exploc.line); in location_compute_display_column()
1075 exploc.column, policy); in location_compute_display_column()
1279 expanded_location exploc in dump_location_info() local
1282 if (exploc.column == 0) in dump_location_info()
1286 char_span line_text = location_get_source_line (exploc.file, in dump_location_info()
1287 exploc.line); in dump_location_info()
1292 exploc.file, exploc.line, in dump_location_info()
[all …]
H A Ddiagnostic-show-locus.cc178 exploc_with_display_col (const expanded_location &exploc, in exploc_with_display_col() argument
181 : expanded_location (exploc), in exploc_with_display_col()
182 m_display_col (location_compute_display_column (exploc, policy)) in exploc_with_display_col()
184 if (exploc.column > 0) in exploc_with_display_col()
190 expanded_location prev_exploc (exploc); in exploc_with_display_col()
209 layout_point (const exploc_with_display_col &exploc) in layout_point() argument
210 : m_line (exploc.line) in layout_point()
212 m_columns[CU_BYTES] = exploc.column; in layout_point()
213 m_columns[CU_DISPLAY_COLS] = exploc.m_display_col; in layout_point()
1411 expanded_location exploc = m_exploc; in get_expanded_location() local
[all …]
H A Dselftest-diagnostic.h42 start_span_cb (diagnostic_context *context, expanded_location exploc);
H A Dedit-context.cc1451 expanded_location exploc = expand_location (loc); in change_line() local
1454 ASSERT_EQ (line_num, exploc.line); in change_line()
1455 ASSERT_EQ (column, exploc.column); in change_line()
1477 expanded_location exploc = expand_location (loc); in insert_line() local
1480 ASSERT_EQ (line_num, exploc.line); in insert_line()
1481 ASSERT_EQ (column, exploc.column); in insert_line()
H A Dtree-diagnostic-path.cc155 expanded_location exploc in print() local
158 if (exploc.file != LOCATION_FILE (dc->last_location)) in print()
159 dc->start_span (dc, exploc); in print()
H A Dinput.h67 location_compute_display_column (expanded_location exploc,
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgcc-rich-location.c80 expanded_location exploc = expand_location (loc); in blank_line_before_p() local
81 char_span line = location_get_source_line (exploc.file, exploc.line); in blank_line_before_p()
84 if (line.length () < (size_t)exploc.column) in blank_line_before_p()
87 for (int column = 1; column < exploc.column; ++column) in blank_line_before_p()
H A Dselftest-diagnostic.c57 expanded_location exploc) in start_span_cb() argument
59 exploc.file = "FILENAME"; in start_span_cb()
60 default_diagnostic_start_span_fn (context, exploc); in start_span_cb()
H A Ddiagnostic-format-json.cc48 expanded_location exploc = expand_location (loc); in json_from_expanded_location() local
50 if (exploc.file) in json_from_expanded_location()
51 result->set ("file", new json::string (exploc.file)); in json_from_expanded_location()
52 result->set ("line", new json::integer_number (exploc.line)); in json_from_expanded_location()
53 result->set ("column", new json::integer_number (exploc.column)); in json_from_expanded_location()
H A Doptinfo-emit-json.cc196 expanded_location exploc = expand_location (loc); in location_to_json() local
198 obj->set ("file", new json::string (exploc.file)); in location_to_json()
199 obj->set ("line", new json::integer_number (exploc.line)); in location_to_json()
200 obj->set ("column", new json::integer_number (exploc.column)); in location_to_json()
H A Ddiagnostic-show-locus.c178 exploc_with_display_col (const expanded_location &exploc) in exploc_with_display_col() argument
179 : expanded_location (exploc), in exploc_with_display_col()
180 m_display_col (location_compute_display_column (exploc)) {} in exploc_with_display_col()
192 layout_point (const expanded_location &exploc) in layout_point() argument
193 : m_line (exploc.line) in layout_point()
195 m_columns[CU_BYTES] = exploc.column; in layout_point()
196 m_columns[CU_DISPLAY_COLS] = location_compute_display_column (exploc); in layout_point()
1179 expanded_location exploc = m_exploc; in get_expanded_location() local
1180 exploc.line = lr->m_start.m_line; in get_expanded_location()
1181 exploc.column = lr->m_start.m_columns[CU_BYTES]; in get_expanded_location()
[all …]
H A Dinput.c916 location_compute_display_column (expanded_location exploc) in location_compute_display_column() argument
918 if (!(exploc.file && *exploc.file && exploc.line && exploc.column)) in location_compute_display_column()
919 return exploc.column; in location_compute_display_column()
920 char_span line = location_get_source_line (exploc.file, exploc.line); in location_compute_display_column()
924 exploc.column); in location_compute_display_column()
1128 expanded_location exploc in dump_location_info() local
1131 if (exploc.column == 0) in dump_location_info()
1135 char_span line_text = location_get_source_line (exploc.file, in dump_location_info()
1136 exploc.line); in dump_location_info()
1141 exploc.file, exploc.line, in dump_location_info()
[all …]
H A Dselftest-diagnostic.h42 start_span_cb (diagnostic_context *context, expanded_location exploc);
H A Dedit-context.c1445 expanded_location exploc = expand_location (loc); in change_line() local
1448 ASSERT_EQ (line_num, exploc.line); in change_line()
1449 ASSERT_EQ (column, exploc.column); in change_line()
1471 expanded_location exploc = expand_location (loc); in insert_line() local
1474 ASSERT_EQ (line_num, exploc.line); in insert_line()
1475 ASSERT_EQ (column, exploc.column); in insert_line()
H A Dtree-diagnostic-path.cc161 expanded_location exploc in print() local
164 if (exploc.file != LOCATION_FILE (dc->last_location)) in print()
165 dc->start_span (dc, exploc); in print()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/
H A Djit-playback.c2963 expanded_location exploc = expand_location (gcc_loc); in add_diagnostic() local
2964 if (exploc.file) in add_diagnostic()
2965 rec_loc = m_recording_ctxt->new_location (exploc.file, in add_diagnostic()
2966 exploc.line, in add_diagnostic()
2967 exploc.column, in add_diagnostic()
/netbsd-src/external/gpl3/gcc/dist/gcc/jit/
H A Djit-playback.cc3509 expanded_location exploc = expand_location (gcc_loc); in add_diagnostic() local
3510 if (exploc.file) in add_diagnostic()
3511 rec_loc = m_recording_ctxt->new_location (exploc.file, in add_diagnostic()
3512 exploc.line, in add_diagnostic()
3513 exploc.column, in add_diagnostic()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Derror.c1160 expanded_location exploc) in gfc_diagnostic_start_span() argument
1163 locus_prefix = gfc_diagnostic_build_locus_prefix (context, exploc); in gfc_diagnostic_start_span()
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Derror.cc1261 expanded_location exploc) in gfc_diagnostic_start_span() argument
1264 locus_prefix = gfc_diagnostic_build_locus_prefix (context, exploc); in gfc_diagnostic_start_span()

12