Re: [PATCH] Spelling suggestions for misspelled preprocessor directives

2016-08-18 Thread Marek Polacek
On Thu, Aug 18, 2016 at 11:28:02AM -0400, David Malcolm wrote: > This patch allows the preprocessor to offer suggestions for misspelled > directives, taking us from e.g.: > > test.c:5:2: error: invalid preprocessing directive #endfi > #endfi > ^ > > to: > > test.c:5:2: error: invalid prep

[PATCH] Spelling suggestions for misspelled preprocessor directives

2016-08-18 Thread David Malcolm
This patch allows the preprocessor to offer suggestions for misspelled directives, taking us from e.g.: test.c:5:2: error: invalid preprocessing directive #endfi #endfi ^ to: test.c:5:2: error: invalid preprocessing directive #endfi; did you mean #endif? #endfi ^ endif I can sel