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

1 2 3 4 5 6 7 8 91011>>

  /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...]
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))
block-return-2.c 4 ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}}
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/clang/test/Parser/
objcxx11-attributes.mm 11 void f(X *noreturn) {
13 int a[ [noreturn getSize] ];
16 int b[ [noreturn] ]; // expected-warning {{'noreturn' only applies to function types}}
18 int c[ [noreturn getSize] + 1 ];
21 int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-warning {{'noreturn' only applies}}
25 [ [ int(), noreturn getSelf ] getSize ]; // expected-warning {{unused}}
28 [ [noreturn] { return noreturn; } () setSize: 4 ]
    [all...]
cxx11-stmt-attributes.cpp 31 [[noreturn]] { } // expected-warning {{attribute noreturn cannot be specified on a statement}}
32 [[noreturn]] if (0) { } // expected-warning {{attribute noreturn cannot be specified on a statement}}
33 [[noreturn]] for (;;); // expected-warning {{attribute noreturn cannot be specified on a statement}}
34 [[noreturn]] do { // expected-warning {{attribute noreturn cannot be specified on a statement}}
35 [[unavailable]] continue; // TODO: only noreturn, alignas and carries_dependency are parsed in C++ 11 syntax at the moment, hence no warning here
40 [[unused]] switch (i) { // TODO: only noreturn, alignas and carries_dependency are parsed in C++ 11 syntax at the moment, hence no warning her
    [all...]
  /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
  /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/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/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}}
  /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 2 define i32 @test() noreturn nounwind {
  /external/clang/test/CodeGen/
ms-declspecs.c 14 // CHECK: noreturn
15 __declspec(noreturn) void f20_t(void);
  /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/android-ndk-r5/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/android-ndk-r6/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/android-ndk-r7/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)
  /external/linux-tools-perf/util/
usage.c 15 static NORETURN void usage_builtin(const char *err)
21 static NORETURN void die_builtin(const char *err, va_list params)
39 static void (*usage_routine)(const char *err) NORETURN = usage_builtin;
40 static void (*die_routine)(const char *err, va_list params) NORETURN = die_builtin;
44 void set_die_routine(void (*routine)(const char *err, va_list params) NORETURN)
  /external/llvm/test/Instrumentation/AddressSanitizer/
instrument-no-return.ll 3 ; before every noreturn call.
8 declare void @MyNoReturnFunc(i32) noreturn
12 call void @MyNoReturnFunc(i32 1) noreturn
  /external/llvm/test/Transforms/LoopUnswitch/
infinite-loop.ll 24 ; CHECK-NEXT: call void @end0() noreturn nounwind
28 ; CHECK-NEXT: call void @end1() noreturn nounwind
44 call void @end0() noreturn nounwind
48 call void @end1() noreturn nounwind
52 declare void @end0() noreturn
53 declare void @end1() noreturn

Completed in 1279 milliseconds

1 2 3 4 5 6 7 8 91011>>