Lines Matching full:clang
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}}
55 [[clang::fallthrough]];
58 [[clang::fallthrough]];
63 [[clang::fallthrough]];
70 [[clang::fallthrough]];
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
237 [[clang::fallthrough]]; // no diagnostics
257 [[clang::fallthrough]]; // no diagnostics
284 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}}
287 [[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch label}}
290 [[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch label}}
292 [[clang::fallthrough]];
294 [[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch label}}
300 [[clang::fallthrough]]; // expected-error{{fallthrough annotation is outside switch statement}}
302 [[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statements}}
306 [[clang::fallthrough]]; // no warning here, correct target
308 [[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statements}}
311 [[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statements}} expected-note{{did you forget ';'?}}