Home
last modified time | relevance | path

Searched refs:noreturn (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/
Dp1.cpp3 [[noreturn]] void a() { in a()
6 void a2 [[noreturn]] () { in a2()
10 [[noreturn, noreturn]] void b() { throw 0; } // expected-error {{attribute 'noreturn' cannot appear… in b()
11 [[noreturn]] [[noreturn]] void b2() { throw 0; } // ok in b2()
13 [[noreturn()]] void c(); // expected-error {{attribute 'noreturn' cannot have an argument list}}
15 void d() [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to types}}
16 int d2 [[noreturn]]; // expected-error {{'noreturn' attribute only applies to functions}}
18 [[noreturn]] int e() { b2(); } // ok in e()
21 [[noreturn]] int f(); // expected-error {{function declared '[[noreturn]]' after its first declarat…
24 [[noreturn]] int g();
[all …]
/external/clang/test/Parser/
Dobjcxx11-attributes.mm11 void f(X *noreturn) {
13 int a[ [noreturn getSize] ];
16 int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions}}
18 int c[ [noreturn getSize] + 1 ];
21 …int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noretur…
25 [ [ int(), noreturn getSelf ] getSize ]; // expected-warning {{unused}}
28 [ [noreturn] { return noreturn; } () setSize: 4 ];
29 [ [bitand] { return noreturn; } () setSize: 5 ];
34 [[int(), noreturn]]; // expected-warning {{unknown attribute 'int' ignored}} \
35 // expected-error {{'noreturn' attribute cannot be applied to a statement}}
[all …]
Dcxx0x-attributes.cpp45 int & [[noreturn]] ref_attr_3 = after_attr; // expected-error {{'noreturn' attribute cannot be appl…
127 [[noreturn]] using namespace ns; // expected-error {{'noreturn' attribute only applies to functions…
154 using T [[noreturn]] = int; // expected-error {{'noreturn' attribute only applies to functions}}
188 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}}
189 friend int f2 [[]] [[noreturn]] () {}
194 …friend int f6 [[noreturn]] (), f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an att…
235 void bar [[noreturn]] ([[]] int i, [[]] int j);
243 …void bar [[noreturn...]] (); // expected-error {{attribute 'noreturn' cannot be used as an attribu…
251 …[] () [[gnu::noreturn]] { return; } (); // expected-warning {{attribute 'noreturn' ignored}} FIXME…
252 [] () [[gnu::noreturn]] { throw; } (); // expected-warning {{attribute 'noreturn' ignored}}
[all …]
Dcxx11-stmt-attributes.cpp31 [[noreturn]] { } // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo()
32 …[[noreturn]] if (0) { } // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo()
33 [[noreturn]] for (;;); // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo()
34 [[noreturn]] do { // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo()
Dattributes.c52 void __attribute__((noreturn)) d0(void), __attribute__((noreturn)) d1(void);
54 void d2(void) __attribute__((noreturn)), d3(void) __attribute__((noreturn));
73 void testFundef2() __attribute__((noreturn)) { // \
/external/clang/test/SemaCXX/
Dattr-noreturn.cpp7 __attribute__((noreturn)) void fail();
28 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0a()
36 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0b()
40 typedef void (* noreturn_fp)() __attribute__((noreturn));
51 int blah() __attribute__((noreturn));
87 __attribute__((noreturn)) void foo(int) {} in foo()
88 __attribute__((noreturn)) void foo(double) {} in foo()
91 __attribute__((noreturn)) void bar(T) {} in bar()
113 void accept_noreturn_fptr(void __attribute__((noreturn)) (*f)(int)) { in accept_noreturn_fptr()
118 typedef void __attribute__((noreturn)) (*fptr_noreturn_t)(int);
[all …]
Dcxx11-gnu-attrs.cpp46 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable
48 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}}
49 int noreturn_fn_3 [[gnu::noreturn]] ();
50 [[gnu::noreturn]] int noreturn_fn_4();
51 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initializ…
52 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3;
53 [[gnu::noreturn]] int (*noreturn_fn_ptr_3)() = &noreturn_fn_1; // expected-error {{cannot initializ…
54 [[gnu::noreturn]] int (*noreturn_fn_ptr_4)() = &noreturn_fn_3;
Dnew-delete-0x.cpp4 struct noreturn_t {} constexpr noreturn = {}; variable
6 void *operator new [[noreturn]] (size_t, noreturn_t);
7 void operator delete [[noreturn]] (void*, noreturn_t);
Dwarn-unreachable.cpp3 int &halt() __attribute__((noreturn));
65 S &foonr() __attribute__((noreturn)); in test5()
90 static void foo() __attribute__((noreturn));
132 __attribute__((noreturn))
172 __attribute__((noreturn))
/external/clang/test/Sema/
Dattr-noreturn.c3 static void (*fp0)(void) __attribute__((noreturn));
7 static void __attribute__((noreturn)) f0(void) { in f0()
12 int f1() __attribute__((noreturn));
14 int g0 __attribute__((noreturn)); // expected-warning {{'noreturn' only applies to function types; …
16 int f2() __attribute__((noreturn(1, 2))); // expected-error {{'noreturn' attribute takes no argumen…
18 void f3() __attribute__((noreturn));
25 void f4() __attribute__((noreturn));
40 __attribute__((noreturn)) void f(__attribute__((noreturn)) void (*x)(void)) { in f()
44 typedef void (*Fun)(void) __attribute__ ((noreturn(2))); // expected-error {{'noreturn' attribute t…
Dreturn.c36 void halt2() __attribute__((noreturn));
63 int halt3() __attribute__((noreturn));
161 void (*fptr)() __attribute__((noreturn));
192 void test28() __attribute__((noreturn));
203 extern void longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn));
204 extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn));
220 void test31(test31_t *callback __attribute__((noreturn)));
287 void abort(void) __attribute__((noreturn));
Dblock-return.c104 int (^b)(int) __attribute__((noreturn)); in foo6()
105 …b = ^ (int i) __attribute__((noreturn)) { return 1; }; // expected-error {{block declared 'noretu… in foo6()
107 …int (^c)(void) __attribute__((noreturn)) = ^ __attribute__((noreturn)) { return 100; }; // expecte… in foo6()
/external/llvm/test/CodeGen/ARM/
Dcall-noret-minsize.ll5 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
Dcall-noret.ll5 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/SemaObjC/
Dreturn.m1 // RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-noreturn -fobjc-exceptions -Wno-objc-root-class …
17 …est3(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/valgrind/include/
Dpub_tool_libcsetjmp.h81 __attribute__((noreturn))
90 __attribute__((noreturn))
99 __attribute__((noreturn))
109 __attribute__((noreturn))
118 __attribute__((noreturn))
/external/llvm/test/Transforms/LoopUnswitch/
Dinfinite-loop.ll45 call void @end0() noreturn nounwind
49 call void @end1() noreturn nounwind
53 declare void @end0() noreturn
54 declare void @end1() noreturn
57 ; CHECK: attributes #1 = { noreturn }
58 ; CHECK: attributes [[NOR_NUW]] = { noreturn nounwind }
/external/libcxxabi/src/
Dcxa_handlers.cpp35 __attribute__((visibility("hidden"), noreturn))
44 __attribute__((noreturn))
60 __attribute__((visibility("hidden"), noreturn))
81 __attribute__((noreturn))
/external/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument-no-return.ll3 ; before every noreturn call or invoke.
8 declare void @MyNoReturnFunc(i32) noreturn
12 call void @MyNoReturnFunc(i32 1) noreturn ; The call insn has noreturn attr.
22 call void @MyNoReturnFunc(i32 1) ; No noreturn attribure on the call.
/external/llvm/test/Transforms/SimplifyCFG/
Dnoreturn-call.ll4 declare void @Finisher(i32) noreturn
7 tail call void @Finisher(i32 %0) noreturn
8 tail call void @Finisher(i32 %0) noreturn
/external/llvm/test/Transforms/PruneEH/
Dsimplenoreturntest.ll3 declare void @noreturn() noreturn
6 call void @noreturn( )
/external/valgrind/coregrind/
Dpub_core_libcprint.h61 __attribute__((noreturn))
66 __attribute__((noreturn))
71 __attribute__((noreturn))
/external/clang/test/Headers/
Dc11.c7 noreturn int f(); // expected-error 1+{{}}
14 noreturn int g();
15 int noreturn g();
/external/iproute2/include/
Dutils.h38 extern void incomplete_command(void) __attribute__((noreturn));
102 void missarg(const char *) __attribute__((noreturn));
103 void invarg(const char *, const char *) __attribute__((noreturn));
104 void duparg(const char *, const char *) __attribute__((noreturn));
105 void duparg2(const char *, const char *) __attribute__((noreturn));
Diptables_common.h15 extern void exit_printhelp(void) __attribute__((noreturn));
16 extern void exit_tryhelp(int) __attribute__((noreturn));
32 void exit_error(enum exittype, char *, ...)__attribute__((noreturn,

12345678910>>...18