Lines Matching refs:fallthrough
4 int fallthrough(int n) { in fallthrough() function
54 [[clang::fallthrough]]; in fallthrough()
57 [[clang::fallthrough]]; in fallthrough()
60 [[clang::fallthrough]]; in fallthrough()
65 [[clang::fallthrough]]; in fallthrough()
72 [[clang::fallthrough]]; in fallthrough()
79 [[unlikely, clang::fallthrough]]; in fallthrough()
187 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
190 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
193 … __attribute__((fallthrough)); // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
204 [[clang::fallthrough]]; // no warning here in fallthrough_position()
207 [[clang::fallthrough]]; // no warning here in fallthrough_position()
210 __attribute__((fallthrough)); // no warning here in fallthrough_position()
214 __attribute__((fallthrough)); // no warning here in fallthrough_position()
224 [[clang::fallthrough]]; // no warning here in fallthrough_position()
227 [[clang::fallthrough]]; // no warning here in fallthrough_position()
245 [[clang::fallthrough]]; // no warning here, this shouldn't be treated as unreachable code in fallthrough_covered_enums()
264 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_local_class()
284 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_lambda()
311 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_placement_error()
314 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
317 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
319 [[clang::fallthrough]]; in fallthrough_placement_error()
321 …[[clang::fallthrough]]; // expected-error{{fallthrough annotation does not directly precede switch… in fallthrough_placement_error()
327 [[clang::fallthrough]]; // expected-error{{fallthrough annotation is outside switch statement}} in fallthrough_targets()
329 …[[clang::fallthrough]] // expected-error{{'fallthrough' attribute only applies to empty statement… in fallthrough_targets()
333 [[clang::fallthrough]]; // no warning here, correct target in fallthrough_targets()
335 …[[clang::fallthrough]] // expected-error{{'fallthrough' attribute only applies to empty statement… in fallthrough_targets()
338 …[[clang::fallthrough]] // expected-error{{'fallthrough' attribute is only allowed on empty stat… in fallthrough_targets()
349 [[clang::fallthrough]]; in fallthrough_alt_spelling()
364 __attribute__((fallthrough)); in fallthrough_attribute_spelling()