Home
last modified time | relevance | path

Searched refs:src_loc (Results 1 – 10 of 10) sorted by relevance

/freebsd-12.1/contrib/gcclibs/libcpp/
H A Derrors.c81 source_location src_loc, unsigned int column) in _cpp_begin_message() argument
116 print_location (pfile, src_loc, column); in _cpp_begin_message()
138 source_location src_loc; in cpp_error() local
150 src_loc = pfile->directive_line; in cpp_error()
152 src_loc = pfile->line_table->highest_line; in cpp_error()
169 src_loc = t ? t->src_loc : 0; in cpp_error()
172 if (_cpp_begin_message (pfile, level, src_loc, 0)) in cpp_error()
182 source_location src_loc, unsigned int column, in cpp_error_with_line() argument
189 if (_cpp_begin_message (pfile, level, src_loc, column)) in cpp_error_with_line()
H A Dlex.c459 cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0, in warn_about_normalization()
462 cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0, in warn_about_normalization()
755 result->src_loc = old->src_loc; in _cpp_temp_token()
926 result->src_loc = pfile->line_table->highest_line; in _cpp_lex_direct()
943 result->src_loc = pfile->line_table->highest_line; in _cpp_lex_direct()
950 result->src_loc = pfile->line_table->highest_line; in _cpp_lex_direct()
954 LINEMAP_POSITION_FOR_COLUMN (result->src_loc, pfile->line_table, in _cpp_lex_direct()
H A Dtraditional.c151 source_location src_loc = pfile->line_table->highest_line; in copy_comment() local
161 cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0, in copy_comment()
H A Dmacro.c203 number = pfile->cur_token[-1].src_loc; in _cpp_builtin_macro_text()
466 source_location saved_loc = lhs->src_loc; in paste_tokens()
476 lhs->src_loc = saved_loc; in paste_tokens()
H A Ddirectives.c989 if (_cpp_begin_message (pfile, code, pfile->cur_token[-1].src_loc, 0)) in do_diagnostic()
1320 pfile->directive_result.src_loc = pragma_token->src_loc; in do_pragma()
/freebsd-12.1/contrib/gcc/
H A Dc-ppoutput.c235 maybe_print_line (source_location src_loc) in maybe_print_line() argument
237 const struct line_map *map = linemap_lookup (&line_table, src_loc); in maybe_print_line()
238 int src_line = SOURCE_LINE (map, src_loc); in maybe_print_line()
256 print_line (src_loc, ""); in maybe_print_line()
262 print_line (source_location src_loc, const char *special_flags) in print_line() argument
271 const struct line_map *map = linemap_lookup (&line_table, src_loc); in print_line()
278 print.src_line = SOURCE_LINE (map, src_loc); in print_line()
304 source_location src_loc = token->src_loc; in cb_line_change() local
309 maybe_print_line (src_loc); in cb_line_change()
320 const struct line_map *map = linemap_lookup (&line_table, src_loc); in cb_line_change()
[all …]
H A Dscan-decls.c187 map = linemap_lookup (&line_table, token->src_loc); in scan_decls()
188 line = SOURCE_LINE (map, token->src_loc); in scan_decls()
H A Dc-lex.c203 input_location = token->src_loc; in cb_line_change()
206 source_location loc = token->src_loc; in cb_line_change()
345 *loc = tok->src_loc; in c_lex_with_flags()
H A DChangeLog-200427133 * c-lex.c (cb_line_change): If USE_MAPPED_LOCATION use token's src_loc
41961 line (recently renamed to src_loc) before calling recognized_function.
42266 * cpplib.h (struct cpp_token): Rename line field to src_loc.
42267 Remove col field as it is now subsumed by src_loc.
42270 (cpp_error): Use cur_token's src_loc field, rather than line+col.
42271 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
42274 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
42289 (cb_line_change): Token's line field replaced by src_loc.
/freebsd-12.1/contrib/gcclibs/libcpp/include/
H A Dcpplib.h193 source_location src_loc; /* Location of first char of token. */ member