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

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/SemaCXX/
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
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]];
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 -DCOMMAND_LINE_FALLTHROUGH=[[fallthrough]] -DUNCHOSEN=[[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
  /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.fallthrough/
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 is not enabled in this test, and does not need t
    [all...]
  /external/clang/test/PCH/
stmt-attrs.cpp 11 // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
12 [[clang::fallthrough]] [[clang::fallthrough]];
  /prebuilts/go/darwin-x86/test/fixedbugs/
issue14540.go 12 fallthrough
15 fallthrough // ERROR "fallthrough statement out of place"
18 fallthrough // ERROR "cannot fallthrough"
issue6500.go 7 // Issue 6500: missing error when fallthrough appears in a block.
16 fallthrough // ERROR "fallthrough"
22 fallthrough
26 fallthrough
bug213.go 12 fallthrough; // ERROR "fallthrough"
issue13262.go 7 // Issue 13262: cmd/compile: bogus "fallthrough
17 fallthrough
  /prebuilts/go/linux-x86/test/fixedbugs/
issue14540.go 12 fallthrough
15 fallthrough // ERROR "fallthrough statement out of place"
18 fallthrough // ERROR "cannot fallthrough"
issue6500.go 7 // Issue 6500: missing error when fallthrough appears in a block.
16 fallthrough // ERROR "fallthrough"
22 fallthrough
26 fallthrough
bug213.go 12 fallthrough; // ERROR "fallthrough"
issue13262.go 7 // Issue 13262: cmd/compile: bogus "fallthrough
17 fallthrough
  /external/clang/test/PCH/Inputs/
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/
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/libtextclassifier/util/base/
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]]
76 #define TC_FALLTHROUGH_INTENDED [[gnu::fallthrough]]
  /external/clang/test/Misc/
ast-dump-color.cpp 12 [[clang::fallthrough]];
  /prebuilts/go/darwin-x86/test/
switch.go 118 fallthrough
122 fallthrough
126 fallthrough
130 fallthrough
138 fallthrough
142 fallthrough
146 fallthrough
150 fallthrough
154 fallthrough
166 fallthrough // tests scoping of case
    [all...]
switch4.go 21 fallthrough // ERROR "cannot fallthrough final case in switch"
  /prebuilts/go/linux-x86/test/
switch.go 118 fallthrough
122 fallthrough
126 fallthrough
130 fallthrough
138 fallthrough
142 fallthrough
146 fallthrough
150 fallthrough
154 fallthrough
166 fallthrough // tests scoping of case
    [all...]
switch4.go 21 fallthrough // ERROR "cannot fallthrough final case in switch"
  /prebuilts/go/darwin-x86/test/fixedbugs/issue15838.dir/
a.go 29 fallthrough
58 fallthrough
  /prebuilts/go/linux-x86/test/fixedbugs/issue15838.dir/
a.go 29 fallthrough
58 fallthrough

Completed in 414 milliseconds

1 2 3 4 5 6 7 8 91011>>