Trivial fix in dump_access_tree_1
[gcc.git] / libcpp / ChangeLog
index 95200dacbda730948772b08ec22c29b46162e71c..13a33c302f633f3e8e90344eebaf5f7fe1e1681c 100644 (file)
@@ -1,3 +1,66 @@
+2017-06-09  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h
+       (rich_location::fixits_cannot_be_auto_applied): New method.
+       (rich_location::fixits_can_be_auto_applied_p): New accessor.
+       (rich_location::m_fixits_cannot_be_auto_applied): New field.
+       * line-map.c (rich_location::rich_location): Initialize new field.
+
+2017-06-05  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/cpplib.h (struct cpp_callbacks): Add "comment"
+       callback.
+       * lex.c (_cpp_lex_direct): Call the comment callback if non-NULL.
+
+2017-05-02  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (class rich_location): Update description of
+       newline handling.
+       (class fixit_hint): Likewise.
+       (fixit_hint::ends_with_newline_p): New decl.
+       * line-map.c (rich_location::maybe_add_fixit): Support newlines
+       in fix-it hints that are insertions of single lines at the start
+       of a line.  Don't consolidate into such fix-it hints.
+       (fixit_hint::ends_with_newline_p): New method.
+
+2017-05-01  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (source_range::intersects_line_p): Delete.
+       (rich_location::add_fixit): Delete.
+       (rich_location::maybe_add_fixit): New method.
+       (class fixit_hint): Reimplement in terms of...
+       (class fixit_replace): ...this.
+       (class fixit_insert): Delete.
+       * line-map.c (linemap_position_for_loc_and_offset): Drop overzealous
+       linemap_assert_fails.
+       (source_range::intersects_line_p): Rename to...
+       (fixit_hint::affects_line_p): New function.
+       (rich_location::add_fixit_insert_before): Reimplement in terms of
+       maybe_add_fixit, moving validation there.
+       (rich_location::add_fixit_insert_after): Likewise.
+       (column_before_p): Delete.
+       (rich_location::add_fixit_replace): Reimplement in terms of
+       maybe_add_fixit, moving validation there.  Convert closed input range
+       to half-open range.
+       (rich_location::add_fixit): Delete.
+       (rich_location::maybe_add_fixit): New function.
+       (fixit_insert::fixit_insert): Delete.
+       (fixit_insert::~fixit_insert): Delete.
+       (fixit_insert::affects_line_p): Delete.
+       (fixit_insert::maybe_append_replace): Delete.
+       (fixit_replace::fixit_replace): Rename to...
+       (fixit_hint::fixit_hint): ...this, rewriting as necessary.
+       (fixit_replace::~fixit_replace): Delete.
+       (fixit_replace::affects_line_p): Delete.
+       (fixit_replace::maybe_append_replace): Rename to...
+       (fixit_hint::maybe_append): ...this, rewriting as necessary.
+
+2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/line-map.h (LINEMAPS_MACRO_MAPS): Fix typo in comment.
+       * lex.c (search_line_fast): Likewise.
+       * pch.h (cpp_valid_state): Likewise.
+
 2017-03-21  Andreas Schwab  <schwab@suse.de>
 
        * lex.c (search_line_fast) [__ARM_NEON && __ARM_64BIT_STATE]: