Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:warning

13     case -1:  // no warning here, ignore fall-through from unreachable code
15 case 0: {// expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
17 case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
19 case 3: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
22 case 4: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
25 case 5: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
34 case 6: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
36 case 66: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert 'break;' to avoid fall-through}}
56 case 9: // no warning here, intended fall-through marked with an attribute
59 default: { // no warning here, intended fall-through marked with an attribute
66 case 10: // no warning here, intended fall-through marked with an attribute
72 case 110: // expected-warning{{unannotated fall-through between switch labels}} but no fix-it hint as we have one fall-through annotation!
77 case 12: // no warning here, intended fall-through, no statement between labels
87 case 15: // no warning here, there's no fall-through
98 case 19: { // no warning here, there's no fall-through
102 case 21: { // no warning here, there's no fall-through
105 case 23: // no warning here, there's no fall-through
108 case 25: // no warning here, there's no fall-through
127 default: // no warning here, there's no fall-through
154 MY_SWITCH(n, 13, n *= 2, 14, break) // expected-warning{{unannotated fall-through between switch labels}}
158 MY_CASE(44, break); // expected-warning{{unannotated fall-through between switch labels}}
164 MY_CASE2(444, n += 44, 4444, break); // expected-warning{{unannotated fall-through between switch labels}}
168 MY_SWITCH2(n + 4, MY_CASE(17, n *= 3), MY_CASE(19, break)) // expected-warning{{unannotated fall-through between switch labels}}
170 MY_SWITCH2(n + 5, MY_CASE(21, break), MY_CASE2(23, n *= 7, 25, break)) // expected-warning{{unannotated fall-through between switch labels}}
183 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}}
186 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}}
189 case 223: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
197 [[clang::fallthrough]]; // no warning here
200 [[clang::fallthrough]]; // no warning here
218 [[clang::fallthrough]]; // no warning here, this shouldn't be treated as unreachable code
230 // annotation does not directly precede switch label" warning.
241 expected-warning{{unannotated fall-through between switch labels}} \
250 // annotation does not directly precede switch label" warning.
261 expected-warning{{unannotated fall-through between switch labels}} \
275 // Don't issue a warning.
284 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}}
306 [[clang::fallthrough]]; // no warning here, correct target