On Sep 01 2016, David Malcolm <dmalc...@redhat.com> wrote: > diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c > index a6281fc..531d94e 100644 > --- a/gcc/c/c-parser.c > +++ b/gcc/c/c-parser.c > @@ -1685,7 +1685,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool > fndef_ok, > if (tag_exists_p (RECORD_TYPE, name)) > { > /* This is not C++ with its implicit typedef. */ > - richloc.add_fixit_insert ("struct"); > + richloc.add_fixit_insert ("struct ");
Perhaps add_fixit_insert should receive a second argument that says whether to prepend/append a space when inserting. Then it can avoid printing the space when the hint is displayed. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."