Re: [PATCH] C FE: implement fix-it hint for -Wmissing-braces

2016-12-07 Thread Jeff Law
On 11/11/2016 06:30 PM, David Malcolm wrote: This patch implements fix-it hints to -Wmissing-braces, showing where to add braces. For example: $ cat test.c int arr_2_3_2[2][3][2] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; $ ./xgcc -B. -c test.c -Wall -fdiagnostics-generate-patc

[PATCH] C FE: implement fix-it hint for -Wmissing-braces

2016-11-11 Thread David Malcolm
This patch implements fix-it hints to -Wmissing-braces, showing where to add braces. For example: $ cat test.c int arr_2_3_2[2][3][2] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; $ ./xgcc -B. -c test.c -Wall -fdiagnostics-generate-patch test.c:2:3: warning: missing braces around