summaryrefslogtreecommitdiff
path: root/libjava/classpath/testsuite/java.lang/ExceptionTest.java
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2016-09-01 00:50:54 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2016-09-01 00:50:54 +0000
commit986530da4bad1e6b66640f7c1120a018482b78fc (patch)
treebeb58f7bd4e805570f23f4411287d644452667ff /libjava/classpath/testsuite/java.lang/ExceptionTest.java
parent6ac3840a4c542b8d8d50ae2dc0c52a4dc775ef63 (diff)
downloadgcc-986530da4bad1e6b66640f7c1120a018482b78fc.tar.gz
C: Fix missing spaces in 'struct' fix-it hints
In r237714 I added fix-it hints to the C frontend for missing "struct" keywords e.g.: spellcheck-typenames.c:69:1: error: unknown type name ‘foo_t’; use ‘struct’ keyword to refer to the type foo_t *foo_ptr; ^~~~~ struct However when using the (not yet in trunk) option -fdiagnostics-generate-patch, the generated patch is nonsensical: -foo_t *foo_ptr; +structfoo_t *foo_ptr; Fix the fix-its by adding a trailing space to each one, giving: -foo_t *foo_ptr; +struct foo_t *foo_ptr; gcc/c/ChangeLog: * c-parser.c (c_parser_declaration_or_fndef): Add trailing space to the insertion fixits for "struct", "union", and "enum". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/testsuite/java.lang/ExceptionTest.java')
0 files changed, 0 insertions, 0 deletions