On Sat, Apr 21, 2012 at 3:52 PM, David Blaikie <dblai...@gmail.com> wrote:
> On Sat, Apr 21, 2012 at 3:26 PM, Chandler Carruth <chandl...@google.com> > wrote: > > On Sat, Apr 21, 2012 at 11:00 AM, Matthieu Monrocq > > <matthieu.monr...@gmail.com> wrote: > >> > >> Two remarks: > >> > >> > if there is no statement between two cases, then fallthrough is most > >> > probable > >> > otherwise it is not possible to actually distinguish between a > possible > >> > fallthrough or break > >> > >> I don't think that providing a fixit is reasonable, because fixit should > >> be provided only when they are right, taking chances is risking > >> miscompilation. > > > > > > Note that these are fixit hints on *notes* attached to the diagnostic. > > Except that's the thing - in the current code out for review, there's > only two warnings being added, and no notes (one warning for > fallthrough without the attribute, one warning for using the attribute > in non case statements). > Sorry, I chatted w/ Alex about this in person, and thought those changes had been made already. =] Teach me to not read the patch. Yes, we're all in agreement that these should be notes, not attached to the warning. =]
_______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits