On 08/30/2016 04:38 PM, David Malcolm wrote:
In conjunction with the not-yet-in-trunk -fdiagnostics-generate-patch, this can generate patches like this:--- modernize-named-inits.c +++ modernize-named-inits.c @@ -16,7 +16,7 @@ /* Old-style named initializers. */ struct foo old_style_f = { - foo: 1, - bar: 2, + .foo= 1, + .bar= 2, };
What happens if there are newlines in between any of the tokens? Bernd