Lines Matching refs:fallthrough
4 int fallthrough(int n) { in fallthrough() function
55 [[clang::fallthrough]]; in fallthrough()
58 [[clang::fallthrough]]; in fallthrough()
63 [[clang::fallthrough]]; in fallthrough()
70 [[clang::fallthrough]]; in fallthrough()
183 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
186 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
197 [[clang::fallthrough]]; // no warning here in fallthrough_position()
200 [[clang::fallthrough]]; // no warning here in fallthrough_position()
218 [[clang::fallthrough]]; // no warning here, this shouldn't be treated as unreachable code in fallthrough_covered_enums()
237 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_local_class()
257 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_lambda()
284 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_placement_error()
287 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
290 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
292 [[clang::fallthrough]]; in fallthrough_placement_error()
294 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
300 [[clang::fallthrough]]; // expected-error{{fallthrough annotation is outside switch statement}} in fallthrough_targets()
302 …[[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statemen… in fallthrough_targets()
306 [[clang::fallthrough]]; // no warning here, correct target in fallthrough_targets()
308 …[[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statemen… in fallthrough_targets()
311 …[[clang::fallthrough]] // expected-error{{fallthrough attribute is only allowed on empty statem… in fallthrough_targets()