diff options
| author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-10-14 14:45:36 +0000 |
|---|---|---|
| committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-10-14 14:45:36 +0000 |
| commit | 3aac09524beaea58b2080d72d1eb7f5202853716 (patch) | |
| tree | 14ba88901f9fa27aced570ad65125c5c7d902a01 /libcpp/include | |
| parent | 48d3af1259c6365615027708f259f04c8ac292fc (diff) | |
| download | gcc-3aac09524beaea58b2080d72d1eb7f5202853716.tar.gz gcc-3aac09524beaea58b2080d72d1eb7f5202853716.tar.bz2 gcc-3aac09524beaea58b2080d72d1eb7f5202853716.zip | |
line-map.h (linemap_location_from_macro_expansion_p): const struct line_maps * argument.
libcpp/ChangeLog:
2014-10-14 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_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.
From-SVN: r216205
Diffstat (limited to 'libcpp/include')
| -rw-r--r-- | libcpp/include/line-map.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 0c8f588abc5..1f6553c9468 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -523,7 +523,7 @@ int linemap_location_in_system_header_p (struct line_maps *, /* Return TRUE if LOCATION is a source code location of a token coming from a macro replacement-list at a macro expansion point, FALSE otherwise. */ -bool linemap_location_from_macro_expansion_p (struct line_maps *, +bool linemap_location_from_macro_expansion_p (const struct line_maps *, source_location); /* source_location values from 0 to RESERVED_LOCATION_COUNT-1 will @@ -599,9 +599,10 @@ linemap_position_for_column (struct line_maps *, unsigned int); /* Encode and return a source location from a given line and column. */ -source_location linemap_position_for_line_and_column (struct line_map *, - linenum_type, - unsigned int); +source_location +linemap_position_for_line_and_column (const struct line_map *, + linenum_type, unsigned int); + /* Return the file this map is for. */ #define LINEMAP_FILE(MAP) \ (linemap_check_ordinary (MAP)->d.ordinary.to_file) |
