/external/llvm-project/clang/test/SemaCXX/ |
D | attr-noreturn.cpp | 7 __attribute__((noreturn)) void fail(); 21 __attribute__((noreturn)) void fail(); 24 ~A() __attribute__((noreturn)) { fail(); } in ~A() 28 ~B() __attribute__((noreturn)) { fail(); } in ~B() 44 __attribute__((noreturn)) void test_1() { A a; } in test_1() 45 __attribute__((noreturn)) void test_2() { B b; } in test_2() 46 __attribute__((noreturn)) void test_3() { C c; } in test_3() 47 __attribute__((noreturn)) void test_4() { D d; } in test_4() 48 __attribute__((noreturn)) void test_5() { E e; } in test_5() 49 __attribute__((noreturn)) void test_6() { F f; } in test_6() [all …]
|
D | cxx11-gnu-attrs.cpp | 59 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable 61 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}} 62 int noreturn_fn_3 [[gnu::noreturn]] (); 63 [[gnu::noreturn]] int noreturn_fn_4(); 64 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initializ… 65 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3; 66 [[gnu::noreturn]] int (*noreturn_fn_ptr_3)() = &noreturn_fn_1; // expected-error {{cannot initializ… 67 [[gnu::noreturn]] int (*noreturn_fn_ptr_4)() = &noreturn_fn_3;
|
/external/clang/test/SemaCXX/ |
D | attr-noreturn.cpp | 7 __attribute__((noreturn)) void fail(); 21 __attribute__((noreturn)) void fail(); 24 ~A() __attribute__((noreturn)) { fail(); } in ~A() 28 ~B() __attribute__((noreturn)) { fail(); } in ~B() 44 __attribute__((noreturn)) void test_1() { A a; } in test_1() 45 __attribute__((noreturn)) void test_2() { B b; } in test_2() 46 __attribute__((noreturn)) void test_3() { C c; } in test_3() 47 __attribute__((noreturn)) void test_4() { D d; } in test_4() 48 __attribute__((noreturn)) void test_5() { E e; } in test_5() 49 __attribute__((noreturn)) void test_6() { F f; } in test_6() [all …]
|
D | cxx11-gnu-attrs.cpp | 60 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable 62 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}} 63 int noreturn_fn_3 [[gnu::noreturn]] (); 64 [[gnu::noreturn]] int noreturn_fn_4(); 65 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initializ… 66 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3; 67 [[gnu::noreturn]] int (*noreturn_fn_ptr_3)() = &noreturn_fn_1; // expected-error {{cannot initializ… 68 [[gnu::noreturn]] int (*noreturn_fn_ptr_4)() = &noreturn_fn_3;
|
/external/angle/third_party/abseil-cpp/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/abseil-cpp/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/libtextclassifier/abseil-cpp/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/openscreen/third_party/abseil/src/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/base/internal/ |
D | throw_delegate.h | 42 [[noreturn]] void ThrowStdLogicError(const std::string& what_arg); 43 [[noreturn]] void ThrowStdLogicError(const char* what_arg); 44 [[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg); 45 [[noreturn]] void ThrowStdInvalidArgument(const char* what_arg); 46 [[noreturn]] void ThrowStdDomainError(const std::string& what_arg); 47 [[noreturn]] void ThrowStdDomainError(const char* what_arg); 48 [[noreturn]] void ThrowStdLengthError(const std::string& what_arg); 49 [[noreturn]] void ThrowStdLengthError(const char* what_arg); 50 [[noreturn]] void ThrowStdOutOfRange(const std::string& what_arg); 51 [[noreturn]] void ThrowStdOutOfRange(const char* what_arg); [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | attr-noreturn.c | 3 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… 49 fn_t *fp __attribute__((noreturn)); [all …]
|
D | return.c | 36 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))); 299 void abort(void) __attribute__((noreturn));
|
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/ |
D | p1.cpp | 3 [[noreturn]] void a() { in a() 6 void a2 [[noreturn]] () { in a2() 10 template <typename T> void a3 [[noreturn]] () {} in a3() 13 template <typename T> void a4 [[noreturn]] () { return; } // expected-warning {{function 'a4' decla… in a4() 17 [[noreturn, noreturn]] void b() { throw 0; } // expected-error {{attribute 'noreturn' cannot appear… in b() 18 [[noreturn]] [[noreturn]] void b2() { throw 0; } // ok in b2() 20 [[noreturn()]] void c(); // expected-error {{attribute 'noreturn' cannot have an argument list}} 22 void d() [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to types}} 23 int d2 [[noreturn]]; // expected-error {{'noreturn' attribute only applies to functions}} 25 [[noreturn]] int e() { b2(); } // ok in e() [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/ |
D | p1.cpp | 3 [[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/llvm-project/clang/test/Parser/ |
D | 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}} 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 …]
|
D | cxx0x-attributes.cpp | 45 int & [[noreturn]] ref_attr_3 = after_attr; // expected-error {{'noreturn' attribute cannot be appl… 136 [[noreturn]] using namespace ns; // expected-error {{'noreturn' attribute only applies to functions… 163 using T [[noreturn]] = int; // expected-error {{'noreturn' attribute only applies to functions}} 197 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}} 198 friend int f2 [[]] [[noreturn]] () {} 203 …friend int f6 [[noreturn]] (), f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an att… 244 void bar [[noreturn]] ([[]] int i, [[]] int j); 252 …void bar [[noreturn...]] (); // expected-error {{attribute 'noreturn' cannot be used as an attribu… 260 …[] () [[gnu::noreturn]] { return; } (); // expected-warning {{attribute 'noreturn' ignored}} FIXME… 261 [] () [[gnu::noreturn]] { throw; } (); // expected-warning {{attribute 'noreturn' ignored}} [all …]
|
/external/clang/test/Parser/ |
D | 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}} 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 …]
|
D | cxx0x-attributes.cpp | 45 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 …]
|
/external/clang/test/Sema/ |
D | attr-noreturn.c | 3 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…
|
D | return.c | 36 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));
|
/external/kmod/testsuite/ |
D | test-modprobe.c | 28 static noreturn int modprobe_show_depends(const struct test *t) in modprobe_show_depends() 50 static noreturn int modprobe_show_depends2(const struct test *t) in modprobe_show_depends2() 73 static noreturn int modprobe_show_alias_to_none(const struct test *t) in modprobe_show_alias_to_none() 98 static noreturn int modprobe_show_exports(const struct test *t) in modprobe_show_exports() 121 static noreturn int modprobe_builtin(const struct test *t) in modprobe_builtin() 140 static noreturn int modprobe_builtin_lookup_only(const struct test *t) in modprobe_builtin_lookup_only() 162 static noreturn int modprobe_softdep_loop(const struct test *t) in modprobe_softdep_loop() 184 static noreturn int modprobe_install_cmd_loop(const struct test *t) in modprobe_install_cmd_loop() 210 static noreturn int modprobe_param_kcmdline(const struct test *t) in modprobe_param_kcmdline() 234 static noreturn int modprobe_param_kcmdline2(const struct test *t) in modprobe_param_kcmdline2() [all …]
|
D | test-depmod.c | 32 static noreturn int depmod_modules_order_for_compressed(const struct test *t) in depmod_modules_order_for_compressed() 60 static noreturn int depmod_search_order_simple(const struct test *t) in depmod_search_order_simple() 86 static noreturn int depmod_search_order_same_prefix(const struct test *t) in depmod_search_order_same_prefix() 112 static noreturn int depmod_detect_loop(const struct test *t) in depmod_detect_loop() 135 static noreturn int depmod_search_order_external_first(const struct test *t) in depmod_search_order_external_first() 161 static noreturn int depmod_search_order_external_last(const struct test *t) in depmod_search_order_external_last() 187 static noreturn int depmod_search_order_override(const struct test *t) in depmod_search_order_override()
|
/external/llvm/test/Transforms/LoopUnswitch/ |
D | cold-loop.ll | 12 call void @some_func1() noreturn nounwind 29 call void @some_func1() noreturn nounwind 33 call void @some_func2() noreturn nounwind 38 call void @some_func3() noreturn nounwind 39 call void @some_func4() noreturn nounwind 46 declare void @some_func1() noreturn 47 declare void @some_func2() noreturn 48 declare void @some_func3() noreturn 49 declare void @some_func4() noreturn
|
/external/catch2/include/internal/ |
D | catch_enforce.h | 19 [[noreturn]] 24 [[noreturn]] 28 [[noreturn]] 30 [[noreturn]] 32 [[noreturn]]
|
/external/llvm-project/llvm/test/Transforms/HotColdSplit/ |
D | noreturn.ll | 9 ; Don't outline noreturn calls which aren't explicitly marked cold. 26 ; Don't outline within a noreturn function. 30 define void @xpc_objc_main(i32) noreturn { 44 ; Do outline noreturn calls marked cold. 62 ; Do outline noreturn calls preceded by a cold call. 83 ; CHECK: attributes [[XPC_OBJC_MAIN_ATTRS]] = { noreturn } 87 declare void @llvm.trap() noreturn cold 91 declare void @longjmp(%struct.__jmp_buf_tag*, i32) noreturn nounwind
|