Lines Matching full:fallthrough

1 …%clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -Wunreachable-code-fallthrough
4 int fallthrough(int n) { in fallthrough() function
15 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
17 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
19 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
22 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
25 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
34 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough()
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()
196 …d fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence … in fallthrough_position()
201 #pragma clang diagnostic ignored "-Wunreachable-code-fallthrough" 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()
256 // Fallthrough annotations in local classes used to generate "fallthrough
264 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_local_class()
276 // Fallthrough annotations in lambdas used to generate "fallthrough
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()