Index: htdocs/gcc-7/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v retrieving revision 1.39 diff -u -p -r1.39 changes.html --- htdocs/gcc-7/changes.html 17 Jan 2017 21:26:31 -0000 1.39 +++ htdocs/gcc-7/changes.html 27 Jan 2017 16:03:47 -0000 @@ -599,9 +599,12 @@ test: ret .cfi_endproc -
-fdiagnostics-parseable-fixits
allows for
- fix-it hints to be emitted in a machine-readable form, suitable for
- consumption by IDEs. For example, given:
+ -fdiagnostics-parseable-fixits
+ allows for fix-it hints to be emitted in a machine-readable
+ form, suitable for consumption by IDEs. For example, given:
spellcheck-fields.cc:52:13: error: 'struct s' has no member named 'colour'; did you mean 'color'? return ptr->colour; @@ -612,6 +615,21 @@ it will emit:fix-it:"spellcheck-fields.cc":{52:13-52:19}:"color"
-fdiagnostics-generate-patch
will print
+ a patch in "unified" format after any diagnostics are printed,
+ showing the result of applying all fix-it hints. For the above
+ example it would emit:
++--- spellcheck-fields.cc ++++ spellcheck-fields.cc +@@ -49,5 +49,5 @@ + + color get_color(struct s *ptr) + { +- return ptr->colour; ++ return ptr->color; + } +
gcc
and g++
driver programs will now
provide suggestions for misspelled arguments to command-line options.