aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc-rich-location.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-06-14 23:08:34 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-06-14 23:08:34 +0000
commit264757fb054a1f3639eafddb72e87c57004c6aaa (patch)
tree7f70847fe1c3fb731deac7600fe4baa87c0b3c8f /gcc/gcc-rich-location.h
parent4eb24e010993b2d9152c2038566f0114fd65fac7 (diff)
downloadgcc-264757fb054a1f3639eafddb72e87c57004c6aaa.zip
gcc-264757fb054a1f3639eafddb72e87c57004c6aaa.tar.gz
gcc-264757fb054a1f3639eafddb72e87c57004c6aaa.tar.bz2
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
Diffstat (limited to 'gcc/gcc-rich-location.h')
-rw-r--r--gcc/gcc-rich-location.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gcc-rich-location.h b/gcc/gcc-rich-location.h
index fd332de..9c8a790 100644
--- a/gcc/gcc-rich-location.h
+++ b/gcc/gcc-rich-location.h
@@ -42,6 +42,9 @@ class gcc_rich_location : public rich_location
void
maybe_add_expr (tree t);
+
+ void add_fixit_misspelled_id (location_t misspelled_token_loc,
+ tree hint_id);
};
#endif /* GCC_RICH_LOCATION_H */