Re: [PATCH 4/4] c-format.c: suggest the correct format string to use (PR c/64955)

2016-08-04 Thread David Malcolm
On Thu, 2016-08-04 at 13:55 -0600, Jeff Law wrote: > On 08/03/2016 09:45 AM, David Malcolm wrote: > > This adds fix-it hints to c-format.c so that it can (sometimes) > > suggest > > the format string the user should have used. > > > > The patch adds selftests for the new code in c-format.c. These

Re: [PATCH 4/4] c-format.c: suggest the correct format string to use (PR c/64955)

2016-08-04 Thread Jeff Law
On 08/03/2016 09:45 AM, David Malcolm wrote: This adds fix-it hints to c-format.c so that it can (sometimes) suggest the format string the user should have used. The patch adds selftests for the new code in c-format.c. These selftests are thus lang-specific. This is the first time we've had la

[PATCH 4/4] c-format.c: suggest the correct format string to use (PR c/64955)

2016-08-03 Thread David Malcolm
This adds fix-it hints to c-format.c so that it can (sometimes) suggest the format string the user should have used. The patch adds selftests for the new code in c-format.c. These selftests are thus lang-specific. This is the first time we've had lang-specific selftests, and hence the patch also