Introduce gcc_rich_location::add_fixit_misspelled_id
commit2a990300e8fb3a2c25d5fafe25cd65ca82e5062d
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2016 23:08:34 +0000 (14 23:08 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2016 23:08:34 +0000 (14 23:08 +0000)
tree7f70847fe1c3fb731deac7600fe4baa87c0b3c8f
parent06c75b9afb967c65bb08c69758cbaa82b2f884cb
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237463 138bc75d-0d04-0410-961f-82ee72b054a4
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