This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] cleanups in line-map


A few cleanups in line-map code. Bootstrapped and regression tested on
x86_64-linux-gnu.

OK?

libcpp/ChangeLog:

2014-10-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>

    * include/line-map.h (linemap_location_from_macro_expansion_p):
    const struct line_maps * argument.
    (linemap_position_for_line_and_column): const struct line_map *
    argument.
    * line-map.c (linemap_macro_map_loc_to_def_point): Delete
    redundant declaration.
    (linemap_add_macro_token): Use correct argument name in comment.
    (linemap_position_for_line_and_column): const struct line_map *
    argument.
    (linemap_macro_map_loc_to_def_point): Fix comment. Make static.
    (linemap_location_from_macro_expansion_p): const struct line_maps *
    argument.
    (linemap_resolve_location): Fix argument names in comment.

Attachment: linemap-cleanup.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]