Introduce gcc_rich_location::add_fixit_misspelled_id
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 14 Jun 2016 23:08:34 +0000 (23:08 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 14 Jun 2016 23:08:34 +0000 (23:08 +0000)
commit264757fb054a1f3639eafddb72e87c57004c6aaa
tree7f70847fe1c3fb731deac7600fe4baa87c0b3c8f
parent4eb24e010993b2d9152c2038566f0114fd65fac7
Introduce gcc_rich_location::add_fixit_misspelled_id

gcc/c/ChangeLog:
* c-typeck.c (build_component_ref): Simplify fixit code by
using gcc_rich_location::add_fixit_misspelled_id.
(set_init_label): Likewise.

gcc/cp/ChangeLog:
* typeck.c: Include "gcc-rich-location.h".
(finish_class_member_access_expr): Simplify fixit code by
using gcc_rich_location::add_fixit_misspelled_id.

gcc/ChangeLog:
* gcc-rich-location.c
(gcc_rich_location::add_fixit_misspelled_id): New method.
* gcc-rich-location.h
(gcc_rich_location::add_fixit_misspelled_id): Add decl.

From-SVN: r237463
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/gcc-rich-location.c
gcc/gcc-rich-location.h