HomeSort by relevance Sort by last modified time
    Searched refs:fallthrough (Results 1 - 25 of 45) sorted by null

1 2

  /external/clang/test/PCH/Inputs/
cxx11-statement-attributes.h 7 [[clang::fallthrough]]; // This shouldn't generate a warning.
10 [[clang::fallthrough]]; // This should generate a warning: "fallthrough annotation does not directly precede switch label".
  /external/clang/test/PCH/
stmt-attrs.cpp 11 // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
12 [[clang::fallthrough]] [[clang::fallthrough]];
  /external/clang/test/SemaCXX/
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}}
45 [[fallthrough]]; // expected-warning{{unknown attribute 'fallthrough' ignored}}
46 case 2: // expected-warning{{unannotated fall-through}} expected-note{{clang::fallthrough}} expected-note{{break;}}
47 [[clang::fallthrough]];
switch-implicit-fallthrough-macro.cpp 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROUGH=[[clang::fallthrough]] %s
14 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
16 :: fallthrough ] ] // testing whitespace and comments in macro definition
35 #define M1 [[clang::fallthrough]]
42 #define WRONG_MACRO1 clang::fallthrough
43 #define WRONG_MACRO2 [[clang::fallthrough]
45 #define WRONG_MACRO4 [[clang::fallthrough]]]
67 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}}
70 #define TOO_LATE [[clang::fallthrough]]
    [all...]
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...]
switch-implicit-fallthrough-blocks.cpp 1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 -Wimplicit-fallthrough %s
9 [[clang::fallthrough]]; // no diagnostics
switch-implicit-fallthrough-cxx98.cpp 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -Wimplicit-fallthrough %s
7 int fallthrough(int n) { function
ast-print.cpp 204 // CHECK: {{\[\[clang::fallthrough\]\]}}
205 [[clang::fallthrough]];
  /external/clang/test/Preprocessor/
has_attribute.cpp 9 #if __has_cpp_attribute(clang::fallthrough)
26 #if !__has_cpp_attribute(__clang__::fallthrough)
66 #if !__has_declspec_attribute(fallthrough)
  /external/conscrypt/src/main/native/
macros.h 26 // expanded to [[clang::fallthrough]] attribute, which is analysed when
27 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough').
37 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
38 #define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
  /external/clang/test/Misc/
ast-dump-color.cpp 12 [[clang::fallthrough]];
ast-dump-attr.cpp 16 [[clang::fallthrough]];
  /external/clang/test/Analysis/
cxx11-crashes.cpp 91 void fallthrough() { function
94 [[clang::fallthrough]];
  /prebuilts/misc/common/swig/include/2.0.11/go/
gokw.swg 14 GOKW(fallthrough);
  /external/v8/test/mjsunit/
switch.js 126 assertEquals(3, f4(0), "fallthrough-switch.0");
127 assertEquals(3, f4(1), "fallthrough-switch.1");
128 assertEquals(3, f4(2), "fallthrough-switch.2");
129 assertEquals(5, f4(3), "fallthrough-switch.3");
142 assertEquals(2, f4_string('zero', 0), "fallthrough-string-switch.0");
143 assertEquals(1, f4_string('one', 1), "fallthrough-string-switch.1");
144 assertEquals(3, f4_string('two', 2), "fallthrough-string-switch.2");
147 assertEquals(2, f4_string('_zero'.slice(1), 0), "fallthrough-string-switch.3");
148 assertEquals(1, f4_string('_one'.slice(1), 1), "fallthrough-string-switch.4");
149 assertEquals(3, f4_string('_two'.slice(1), 2), "fallthrough-string-switch.5")
    [all...]
  /external/clang/test/Parser/
ms-if-exists.cpp 113 [[clang::fallthrough]] // expected-error {{an attribute list cannot appear here}}
  /external/webrtc/webrtc/
typedefs.h 93 // Macro to be used for switch-case fallthrough (required for enabling
94 // -Wimplicit-fallthrough warning on Clang).
95 #ifndef FALLTHROUGH
97 #define FALLTHROUGH() [[clang::fallthrough]]
99 #define FALLTHROUGH() do { } while (0)
  /system/core/base/include/android-base/
macros.h 166 // expanded to [[clang::fallthrough]] attribute, which is analysed when
167 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough').
177 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
178 #define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
  /external/vixl/
Android.mk 127 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
141 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
156 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
172 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
189 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
205 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
227 LOCAL_CLANG_CFLAGS := -Wimplicit-fallthrough
  /external/vixl/src/vixl/
globals.h 103 // The clang::fallthrough attribute is used along with the Wimplicit-fallthrough
106 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough
113 #if __has_warning("-Wimplicit-fallthrough") && __cplusplus >= 201103L
114 #define VIXL_FALLTHROUGH() [[clang::fallthrough]] //NOLINT
  /external/v8/src/regexp/ia32/
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);
    [all...]
  /external/v8/src/regexp/x64/
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);
    [all...]
  /external/v8/src/regexp/x87/
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);
    [all...]
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/stubs/
port.h 217 __has_cpp_attribute(clang::fallthrough)
218 # define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
  /external/v8/src/regexp/arm/
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);
    [all...]

Completed in 601 milliseconds

1 2