Searched refs:fallthrough (Results 1 - 25 of 35) sorted by relevance

12

/external/clang/test/SemaCXX/
H A Dswitch-implicit-fallthrough-off-by-default.cpp2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -DUNREACHABLE=0 -Wimplicit-fallthrough %s
4 void fallthrough(int n) { function
9 [[fallthrough]]; // expected-no-diagnostics, only checked when UNREACHABLE=0
H A Dswitch-implicit-fallthrough-per-method.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough-per-function %s
4 int fallthrough(int n) { function
8 case 1: // expected-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
12 [[clang::fallthrough]];
15 case 113: // expected-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
44 [[fallthrough]];
46 [[clang::fallthrough]];
H A Dswitch-implicit-fallthrough-macro.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCLANG_PREFIX -DCOMMAND_LINE_FALLTHROUGH=[[clang::fallthrough]] -DUNCHOSEN=[[fallthrough]] %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROUGH=[[fallthrough]] %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough -DCLANG_PREFIX -DCOMMAND_LINE_FALLTHROUGH=[[clang::fallthrough]] %s
4 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROUGH=[[clang::fallthrough]] %s
5 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough
[all...]
H A Dswitch-implicit-fallthrough.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough %s
4 int fallthrough(int n) { function
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]];
[all...]
H A Dswitch-implicit-fallthrough-blocks.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 -Wimplicit-fallthrough %s
9 [[clang::fallthrough]]; // no diagnostics
H A Dswitch-implicit-fallthrough-cxx98.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -Wimplicit-fallthrough %s
7 int fallthrough(int n) { function
H A Dast-print.cpp204 // CHECK: {{\[\[clang::fallthrough\]\]}}
205 [[clang::fallthrough]];
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.fallthrough/
H A Dp1.cpp7 [[fallthrough]]; // ok
10 [[fallthrough]]; // ok
16 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
19 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
22 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
24 do [[fallthrough]]; while (true); // expected-error {{does not directly precede switch label}}
26 do [[fallthrough]]; while (false); // expected-error {{does not directly precede switch label}}
32 [[fallthrough]];
35 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
40 case 10: // no warning, -Wimplicit-fallthrough i
[all...]
/external/clang/test/PCH/
H A Dstmt-attrs.cpp11 // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
12 [[clang::fallthrough]] [[clang::fallthrough]];
/external/clang/test/PCH/Inputs/
H A Dcxx11-statement-attributes.h7 [[clang::fallthrough]]; // This shouldn't generate a warning.
10 case 2: // This should generate a warning: "unannotated fallthrough"
/external/clang/test/Preprocessor/
H A Dhas_attribute.cpp9 #if __has_cpp_attribute(clang::fallthrough)
26 #if !__has_cpp_attribute(__clang__::fallthrough)
61 #if __has_cpp_attribute(fallthrough) == 201603
76 #if !__has_declspec_attribute(fallthrough)
/external/clang/test/Misc/
H A Dast-dump-color.cpp12 [[clang::fallthrough]];
H A Dast-dump-attr.cpp16 [[clang::fallthrough]];
/external/libtextclassifier/util/base/
H A Dmacros.h61 // expanded to [[clang::fallthrough]] attribute, which is analysed when
62 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough').
64 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough
72 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
73 #define TC_FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
/external/clang/test/Analysis/
H A Dcxx11-crashes.cpp90 void fallthrough() { function
93 [[clang::fallthrough]]; // expected-error {{does not directly precede}}
/external/clang/test/Parser/
H A Dms-if-exists.cpp113 [[clang::fallthrough]] // expected-error {{an attribute list cannot appear here}}
/external/webrtc/webrtc/
H A Dtypedefs.h93 // Macro to be used for switch-case fallthrough (required for enabling
94 // -Wimplicit-fallthrough warning on Clang).
97 #define FALLTHROUGH() [[clang::fallthrough]]
/external/icu/icu4c/source/common/unicode/
H A Dplatform.h537 * http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough
541 # if __has_cpp_attribute(clang::fallthrough) || \
542 (__has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough"))
543 # define U_FALLTHROUGH [[clang::fallthrough]]
/external/v8/src/regexp/ia32/
H A Dregexp-macro-assembler-ia32.cc181 Label fallthrough; local
183 __ j(not_equal, &fallthrough);
186 __ bind(&fallthrough);
192 Label fallthrough; local
200 __ j(equal, &fallthrough);
347 __ bind(&fallthrough);
354 Label fallthrough; local
366 __ j(equal, &fallthrough);
427 __ bind(&fallthrough);
/external/v8/src/regexp/x64/
H A Dregexp-macro-assembler-x64.cc195 Label fallthrough;
197 __ j(not_equal, &fallthrough);
200 __ bind(&fallthrough);
206 Label fallthrough;
218 __ j(equal, &fallthrough);
374 __ bind(&fallthrough);
381 Label fallthrough;
391 __ j(equal, &fallthrough);
449 __ bind(&fallthrough);
/external/v8/src/regexp/x87/
H A Dregexp-macro-assembler-x87.cc181 Label fallthrough; local
183 __ j(not_equal, &fallthrough);
186 __ bind(&fallthrough);
191 Label fallthrough; local
199 __ j(equal, &fallthrough);
346 __ bind(&fallthrough);
353 Label fallthrough; local
365 __ j(equal, &fallthrough);
426 __ bind(&fallthrough);
/external/vixl/src/
H A Dglobals-vixl.h185 // The clang::fallthrough attribute is used along with the Wimplicit-fallthrough
188 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough
195 #if __has_warning("-Wimplicit-fallthrough") && __cplusplus >= 201103L
196 #define VIXL_FALLTHROUGH() [[clang::fallthrough]]
/external/protobuf/src/google/protobuf/stubs/
H A Dport.h217 __has_cpp_attribute(clang::fallthrough)
218 # define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
/external/v8/src/regexp/arm/
H A Dregexp-macro-assembler-arm.cc213 Label fallthrough;
221 __ b(eq, &fallthrough);
346 __ bind(&fallthrough);
353 Label fallthrough;
364 __ b(eq, &fallthrough);
410 __ bind(&fallthrough);
/external/v8/src/regexp/mips/
H A Dregexp-macro-assembler-mips.cc219 Label fallthrough;
227 __ Branch(&fallthrough, eq, a1, Operand(zero_reg));
358 __ bind(&fallthrough);
365 Label fallthrough; local
376 __ Branch(&fallthrough, le, a1, Operand(zero_reg));
427 __ bind(&fallthrough);

Completed in 1814 milliseconds

12