/external/clang/test/SemaCXX/ |
H A D | switch-implicit-fallthrough-off-by-default.cpp | 2 // 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 D | switch-implicit-fallthrough-per-method.cpp | 1 // 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 D | switch-implicit-fallthrough-macro.cpp | 1 // 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 D | switch-implicit-fallthrough.cpp | 1 // 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 D | switch-implicit-fallthrough-blocks.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 -Wimplicit-fallthrough %s 9 [[clang::fallthrough]]; // no diagnostics
|
H A D | switch-implicit-fallthrough-cxx98.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -Wimplicit-fallthrough %s 7 int fallthrough(int n) { function
|
H A D | ast-print.cpp | 204 // CHECK: {{\[\[clang::fallthrough\]\]}} 205 [[clang::fallthrough]];
|
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.fallthrough/ |
H A D | p1.cpp | 7 [[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 D | stmt-attrs.cpp | 11 // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}} 12 [[clang::fallthrough]] [[clang::fallthrough]];
|
/external/clang/test/PCH/Inputs/ |
H A D | cxx11-statement-attributes.h | 7 [[clang::fallthrough]]; // This shouldn't generate a warning. 10 case 2: // This should generate a warning: "unannotated fallthrough"
|
/external/clang/test/Preprocessor/ |
H A D | has_attribute.cpp | 9 #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 D | ast-dump-color.cpp | 12 [[clang::fallthrough]];
|
H A D | ast-dump-attr.cpp | 16 [[clang::fallthrough]];
|
/external/libtextclassifier/util/base/ |
H A D | macros.h | 61 // 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 D | cxx11-crashes.cpp | 90 void fallthrough() { function 93 [[clang::fallthrough]]; // expected-error {{does not directly precede}}
|
/external/clang/test/Parser/ |
H A D | ms-if-exists.cpp | 113 [[clang::fallthrough]] // expected-error {{an attribute list cannot appear here}}
|
/external/webrtc/webrtc/ |
H A D | typedefs.h | 93 // 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 D | platform.h | 537 * 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 D | regexp-macro-assembler-ia32.cc | 181 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 D | regexp-macro-assembler-x64.cc | 195 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 D | regexp-macro-assembler-x87.cc | 181 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 D | globals-vixl.h | 185 // 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 D | port.h | 217 __has_cpp_attribute(clang::fallthrough) 218 # define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
|
/external/v8/src/regexp/arm/ |
H A D | regexp-macro-assembler-arm.cc | 213 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 D | regexp-macro-assembler-mips.cc | 219 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);
|