HomeSort by relevance Sort by last modified time
    Searched full:noreturn (Results 1 - 25 of 635) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/
p1.cpp 3 [[noreturn]] void a() {
4 return; // expected-warning {{function 'a' declared 'noreturn' should not return}}
6 void a2 [[noreturn]] () {
7 return; // expected-warning {{function 'a2' declared 'noreturn' should not return}}
10 [[noreturn, noreturn]] void b() { throw 0; } // expected-error {{attribute 'noreturn' cannot appear multiple times in an attribute specifier}}
11 [[noreturn]] [[noreturn]] void b2() { throw 0; } // ok
13 [[noreturn()]] void c(); // expected-error {{attribute 'noreturn' cannot have an argument list}
    [all...]
  /external/clang/test/Sema/
attr-noreturn.c 3 static void (*fp0)(void) __attribute__((noreturn));
7 static void __attribute__((noreturn)) f0(void) {
9 } // expected-warning {{function declared 'noreturn' should not return}}
12 int f1() __attribute__((noreturn));
14 int g0 __attribute__((noreturn)); // expected-warning {{'noreturn' only applies to function types; type here is 'int'}}
16 int f2() __attribute__((noreturn(1, 2))); // expected-error {{attribute takes no arguments}}
18 void f3() __attribute__((noreturn));
20 return; // expected-warning {{function 'f3' declared 'noreturn' should not return}}
23 #pragma clang diagnostic error "-Winvalid-noreturn"
    [all...]
block-return-2.c 4 ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}}
return-noreturn.c 1 // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks -Wmissing-noreturn -Wno-unreachable-code
4 void test1() { // expected-warning {{function 'test1' could be declared with attribute 'noreturn'}}
5 ^ (void) { while (1) { } }(); // expected-warning {{block could be declared with attribute 'noreturn'}}
17 } // expected-warning{{function declared 'noreturn' should not return}}
21 // because the function is marked noreturn and there is an infinite loop.
29 } // expected-warning{{function declared 'noreturn' should not return}}
32 // PR5298 - -Wmissing-noreturn shouldn't warn if the function is already
33 // declared noreturn.
34 void __attribute__((noreturn))
initialize-noreturn.c 4 typedef void (*Fn_noret)(void) __attribute__((noreturn));
8 void foo_noret(void) __attribute__((noreturn));
warn-unused-label.c 8 d: __attribute__((noreturn)); // expected-warning {{'noreturn' attribute only applies to functions}}
  /external/llvm/test/CodeGen/ARM/
2009-08-15-RegScavengerAssert.ll 6 tail call void @exit(i32 undef) noreturn nounwind
10 declare void @exit(i32) noreturn nounwind
call-noret-minsize.ll 5 define void @t1() noreturn minsize nounwind ssp {
12 tail call void @bar() noreturn nounwind
16 define void @t2() noreturn minsize nounwind ssp {
23 tail call void @t1() noreturn nounwind
27 declare void @bar() noreturn
call-noret.ll 5 define void @t1() noreturn nounwind ssp {
14 tail call void @bar() noreturn nounwind
18 define void @t2() noreturn nounwind ssp {
27 tail call void @t1() noreturn nounwind
31 declare void @bar() noreturn
  /external/clang/test/Parser/
objcxx11-attributes.mm 11 void f(X *noreturn) {
13 int a[ [noreturn getSize] ];
16 int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions and methods}}
18 int c[ [noreturn getSize] + 1 ];
21 int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noreturn' attribute only applies}}
25 [ [ int(), noreturn getSelf ] getSize ]; // expected-warning {{unused}}
28 [ [noreturn] { return noreturn; } () setSize: 4 ]
    [all...]
  /external/llvm/test/Transforms/PruneEH/
simplenoreturntest.ll 3 declare void @noreturn() noreturn
6 call void @noreturn( )
  /external/llvm/test/Transforms/SimplifyCFG/
noreturn-call.ll 4 declare void @Finisher(i32) noreturn
7 tail call void @Finisher(i32 %0) noreturn
8 tail call void @Finisher(i32 %0) noreturn
  /external/clang/test/Headers/
c11.c 3 noreturn int f(); // expected-error 1+{{}}
10 noreturn int g();
11 int noreturn g();
  /external/clang/test/PCH/Inputs/
chain-decls2.h 12 void noret() __attribute__((noreturn));
  /external/llvm/test/CodeGen/Generic/
trap.ll 2 define i32 @test() noreturn nounwind {
  /external/clang/test/CodeGenCXX/
cxx11-noreturn.cpp 6 [[noreturn]] int f() {
10 // CHECK: attributes [[NR]] = { noreturn nounwind{{.*}} }
  /external/clang/test/SemaCXX/
attr-noreturn.cpp 7 __attribute__((noreturn)) void fail();
25 // Taking the address of a noreturn function
28 void (*fp1)() __attribute__((noreturn)) = f0;
31 // Taking the address of an overloaded noreturn function
36 void (*fp1)() __attribute__((noreturn)) = f0;
40 typedef void (* noreturn_fp)() __attribute__((noreturn));
51 int blah() __attribute__((noreturn));
55 return 3; // expected-warning {{function 'blah' declared 'noreturn' should not return}}
cxx11-gnu-attrs.cpp 42 // [[gnu::noreturn]] appertains to a declaration, and marks the innermost
43 // function declarator in that declaration as being noreturn.
44 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable
46 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}}
47 int noreturn_fn_3 [[gnu::noreturn]] ();
48 [[gnu::noreturn]] int noreturn_fn_4();
49 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initialize}}
50 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3
    [all...]
  /external/clang/test/SemaObjC/
return.m 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-noreturn -fobjc-exceptions -Wno-objc-root-class %s
17 void test3(int a) { // expected-warning {{function 'test3' could be declared with attribute 'noreturn'}}
25 // issue a noreturn warning.
42 void exit(int) __attribute__((noreturn));
47 - (void)method { // expected-warning{{method 'method' could be declared with attribute 'noreturn'}}
  /external/clang/test/PCH/
functions.h 11 void do_abort(int) __attribute__((noreturn));
  /external/llvm/test/CodeGen/X86/
trap.ll 5 define i32 @test0() noreturn nounwind {
13 define i32 @test1() noreturn nounwind {
  /external/llvm/test/Transforms/FunctionAttrs/
noreturn.ll 3 define void @endless_loop() noreturn nounwind readnone ssp uwtable {
13 define i32 @main() noreturn nounwind ssp uwtable {
  /external/stlport/stlport/stl/
_range_errors.h 43 # pragma noreturn(__stl_throw_runtime_error)
44 # pragma noreturn(__stl_throw_range_error)
45 # pragma noreturn(__stl_throw_out_of_range)
46 # pragma noreturn(__stl_throw_length_error)
47 # pragma noreturn(__stl_throw_invalid_argument)
48 # pragma noreturn(__stl_throw_overflow_error)
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_range_errors.h 43 # pragma noreturn(__stl_throw_runtime_error)
44 # pragma noreturn(__stl_throw_range_error)
45 # pragma noreturn(__stl_throw_out_of_range)
46 # pragma noreturn(__stl_throw_length_error)
47 # pragma noreturn(__stl_throw_invalid_argument)
48 # pragma noreturn(__stl_throw_overflow_error)
  /prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/
_range_errors.h 43 # pragma noreturn(__stl_throw_runtime_error)
44 # pragma noreturn(__stl_throw_range_error)
45 # pragma noreturn(__stl_throw_out_of_range)
46 # pragma noreturn(__stl_throw_length_error)
47 # pragma noreturn(__stl_throw_invalid_argument)
48 # pragma noreturn(__stl_throw_overflow_error)

Completed in 5902 milliseconds

1 2 3 4 5 6 7 8 91011>>