Re: [PATCH 4/4] (v2) Add -fdiagnostics-generate-patch

2016-09-02 Thread David Malcolm
On Wed, 2016-08-24 at 21:13 -0400, David Malcolm wrote: > Changed in v2: I dropped -fdiagnostics-apply-fixits > > This patch uses the edit_context machinery to provide a new > -fdiagnostics-generate-patch option. > > If set an edit_context is created for global_dc, and any > fix-it hints emitted

[PATCH 4/4] (v2) Add -fdiagnostics-generate-patch

2016-08-24 Thread David Malcolm
Changed in v2: I dropped -fdiagnostics-apply-fixits This patch uses the edit_context machinery to provide a new -fdiagnostics-generate-patch option. If set an edit_context is created for global_dc, and any fix-it hints emitted by diagnostics are added to the edit_context. -fdiagnostics-generate-