Home
last modified time | relevance | path

Searched refs:noexcept (Results 1 – 25 of 1006) sorted by relevance

12345678910>>...41

/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/
H A Dequality_comparable_with.compile.pass.cpp100 int (S::*)() && noexcept > ());
142 int (S::*)() && noexcept > ());
346 int (S::*)() noexcept, int (S::*)() volatile noexcept>());
350 int (S::*)() noexcept, int (S::*)() const volatile noexcept>());
362 int (S::*)() noexcept, int (S::*)() volatile & noexcept>());
366 int (S::*)() noexcept, int (S::*)() const volatile & noexcept>());
434 int (S::*)() const noexcept, int (S::*)() volatile noexcept>());
451 int (S::*)() const noexcept, int (S::*)() volatile & noexcept>());
602 int (S::*)() const volatile noexcept, int (S::*)() & noexcept>());
682 int (S::*)() & noexcept, int (S::*)() volatile & noexcept>());
[all …]
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/
H A Dtotally_ordered_with.pass.cpp131 int (S::*)() && noexcept > ());
172 int (S::*)() && noexcept > ());
213 int (S::*)() && noexcept > ());
254 int (S::*)() && noexcept > ());
297 int (S::*)() && noexcept > ());
324 int (S::*)() noexcept, int (S::*)() const volatile noexcept>());
340 int (S::*)() noexcept, int (S::*)() const volatile & noexcept>());
344 int (S::*)() && noexcept > ());
389 int (S::*)() && noexcept > ());
434 int (S::*)() && noexcept > ());
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
H A Dmember_function_pointer.pass.cpp85 test_member_function_pointer<void (Class::*)() noexcept>(); in main()
86 test_member_function_pointer<void (Class::*)(int) noexcept>(); in main()
89 test_member_function_pointer<void (Class::*)() const noexcept>(); in main()
97 test_member_function_pointer<void (Class::*)(...) noexcept>(); in main()
98 test_member_function_pointer<void (Class::*)(int, ...) noexcept>(); in main()
139 test_member_function_pointer<void (Class::*)() & noexcept>(); in main()
140 test_member_function_pointer<void (Class::*)(int) & noexcept>(); in main()
142 test_member_function_pointer<void (Class::*)(...) & noexcept>(); in main()
197 test_member_function_pointer<void (Class::*)() && noexcept>(); in main()
198 test_member_function_pointer<void (Class::*)(int) && noexcept>(); in main()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx1z-noexcept-function-type.cpp8 template<typename T> void redecl1() noexcept(noexcept(T())) {} // expected-note {{previous}} in redecl1()
9 template<typename T> void redecl1() noexcept(noexcept(T())); // ok, same type
10 template<typename T> void redecl1() noexcept(noexcept(T())) {} // expected-error {{redefinition}} in redecl1()
46 template<bool B> auto get_fn() noexcept -> void (*)() noexcept(B) {} in get_fn()
47 static_assert(noexcept(get_fn<true>()()));
55 map() noexcept(T<a>::value) {} in map()
60 multimap() noexcept(T<b>::value) {} in multimap()
66 static_assert(noexcept(A()));
76 auto f0() -> void (*)() noexcept(false);
79 void f1(void p() noexcept);
[all …]
H A Dwarn-throw-out-noexcept-func.cpp135 ~Throws() noexcept(false);
157 void f_ShouldNotDiag() noexcept { in f_ShouldNotDiag()
163 void g_ShouldNotDiag() noexcept { in g_ShouldNotDiag()
228 void m_ShouldNotDiag() noexcept { in m_ShouldNotDiag()
235 void n_ShouldNotDiag() noexcept { in n_ShouldNotDiag()
268 #define NOEXCEPT noexcept
286 void goodPlain() noexcept { in goodPlain()
291 void goodReference() noexcept { in goodReference()
296 void goodPointer() noexcept { in goodPointer()
413 void f() noexcept { in f()
[all …]
H A Dcxx0x-noexcept-expression.cpp8 bool b2 = noexcept(f(0)); in g()
26 static_assert(noexcept(({ in stmt_expr()
34 static_assert(!noexcept(({ in stmt_expr()
43 static_assert(!noexcept(({ in stmt_expr()
51 static_assert(!noexcept(({ in stmt_expr()
55 static_assert(noexcept(({ in stmt_expr()
59 static_assert(!noexcept(({ in stmt_expr()
63 static_assert(noexcept(({ in stmt_expr()
87 void g() noexcept(sizeof(char));
90 void j() noexcept(0);
[all …]
H A Dnothrow-vs-exception-specs.cpp5 static_assert(noexcept(f1()), "");
6 void f1() noexcept;
9 void f1() noexcept(false);
12 static_assert(noexcept(f2()), "");
15 void f2() noexcept(false);
19 void f3() noexcept;
22 void f3() noexcept(false);
52 __declspec(nothrow) void foo4() noexcept(noexcept(foo1()));
53 __declspec(nothrow) void foo5() noexcept(noexcept(foo2()));
55 __declspec(nothrow) void foo6() noexcept(noexcept(foo3()));
[all …]
H A Dimplicit-exception-spec.cpp18 bool ThrowSomething() noexcept(false);
51 T() noexcept(!noexcept(Nested())); // expected-note {{in evaluation of exception spec}}
101 A() noexcept(NE);
102 A(const A&) noexcept(NE);
103 A(A&&) noexcept(NE);
105 A &operator=(A&&) noexcept(NE);
106 ~A() noexcept(NE);
145 Cfalse() noexcept;
146 Cfalse(const Cfalse&) noexcept;
147 Cfalse(Cfalse&&) noexcept;
[all …]
/llvm-project-15.0.7/clang/test/CXX/except/except.spec/
H A Dp14.cpp46 NoThrowMove(NoThrowMove &&) noexcept;
72 ThrowingBase() noexcept(false);
77 ~ThrowingBase() noexcept(false);
80 Derived() noexcept(false) = default;
85 ~Derived() noexcept(false) = default;
91 static_assert(!noexcept(d1 = d1), "");
104 static_assert(!noexcept(d2 = d2), "");
106 Derived3() noexcept(true) = default;
111 ~Derived3() noexcept(true) = default;
130 Base(X<0>) noexcept(true);
[all …]
H A Dp3.cpp45 extern void (*r10)() noexcept;
46 extern void (*r10)() noexcept;
49 extern void (*r11)() noexcept;
50 extern void (*r11)() noexcept(true);
57 extern void (*r13)() noexcept(1 < 2);
58 extern void (*r13)() noexcept(2 > 1);
65 extern void (*r15)() noexcept(false);
66 extern void (*r15)() noexcept(false);
69 extern void (*r16)() noexcept(false);
78 void f17() noexcept(false);
[all …]
H A Dp11-2a.cpp34 static_assert(noexcept(A() == A()));
44 static_assert(!noexcept(C() == C()));
56 static_assert(!noexcept(E() == E()));
64 static_assert(!noexcept(F() == F()));
75 static_assert(!noexcept(Y() <=> Y()));
106 static_assert(noexcept(D() <=> D()));
193 bool operator!=(B, B) noexcept;
194 bool operator<(B, B) noexcept;
195 bool operator<=(B, B) noexcept;
196 bool operator>(B, B) noexcept;
[all …]
H A Dp5-virtual.cpp35 virtual void f7() noexcept;
36 virtual void f8() noexcept;
37 virtual void f9() noexcept(false);
38 virtual void f10() noexcept(false);
41 virtual void f12() noexcept;
42 virtual void f13() noexcept(false);
71 virtual void f7() noexcept;
72 virtual void f8() noexcept(true);
73 virtual void f9() noexcept(true);
76 virtual void f11() noexcept;
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
170 constexpr bool operator<(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/clang/test/PCH/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
170 constexpr bool operator<(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
170 constexpr bool operator<(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dexception-escape.cpp29 void throwing_noexcept() noexcept { in throwing_noexcept()
39 void throw_and_catch() noexcept { in throw_and_catch()
75 void throw_and_rethrow() noexcept { in throw_and_rethrow()
84 void throw_catch_throw() noexcept { in throw_catch_throw()
139 void try_nested_catch() noexcept { in try_nested_catch()
151 void catch_nested_try() noexcept { in catch_nested_try()
182 void indirect_implicit() noexcept { in indirect_implicit()
187 void indirect_explicit() noexcept { in indirect_explicit()
192 void indirect_catch() noexcept { in indirect_catch()
220 void allocator() noexcept { in allocator()
[all …]
/llvm-project-15.0.7/clang/test/CXX/expr/expr.prim/expr.prim.general/
H A Dp3-0x.cpp5 float &f(int*) const noexcept;
8 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(this->ptr));
9 auto g2() const noexcept(noexcept(f((*this).ptr))) -> decltype(f(ptr));
33 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(ptr));
34 auto g2() const noexcept(noexcept(f(((this))->ptr))) -> decltype(f(ptr));
35 auto g3() noexcept(noexcept(f(this->ptr))) -> decltype(f((*this).ptr));
36 auto g4() const noexcept(noexcept(f(((this))->ptr))) -> decltype(f(this->ptr));
37 auto g5() noexcept(noexcept(this->f(ptr))) -> decltype(this->f(ptr));
83 void swap(A& a) noexcept(noexcept(iter_swap(&t_, &a.t_)));
96 friend int add_to_v(A &t) noexcept(noexcept(v_ + 42)) in add_to_v()
[all …]
/llvm-project-15.0.7/libcxx/test/support/
H A Dcompare_types.h68 operator bool() const noexcept;
75 operator explicit_operators() const noexcept;
82 operator explicit_operators() const noexcept;
88 friend bool operator<(no_eq, no_eq) noexcept;
89 friend bool operator>(no_eq, no_eq) noexcept;
97 friend bool operator<(no_eq, no_eq) noexcept;
98 friend bool operator>(no_eq, no_eq) noexcept;
107 friend bool operator>(no_lt, no_lt) noexcept;
115 friend bool operator<(no_gt, no_gt) noexcept;
124 friend bool operator<(no_le, no_le) noexcept;
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dnew-delete-overloads.cpp7 void *operator new(size_t size) noexcept;
9 void *operator new[](size_t size) noexcept;
21 void *operator new(size_t size) noexcept;
26 void *operator new(size_t size) noexcept;
27 void operator delete(void *ptr) noexcept;
29 void *operator new[](size_t) noexcept;
30 void operator delete[](void *) noexcept;
35 void operator delete(void *ptr) noexcept;
52 void operator delete(void *) noexcept;
67 void *operator new(size_t) noexcept;
[all …]
/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
H A Dp2.cpp62 E1() noexcept = default;
64 E1(E1&&) noexcept = default;
67 ~E1() noexcept = default;
70 E2() noexcept(false) = default;
75 ~E2() noexcept(false) = default;
78 E2 make_e2() noexcept;
79 void take_e2(E2&&) noexcept;
103 E4() noexcept(false);
104 E4(const E4&) noexcept(false);
105 E4(E4&&) noexcept(false);
[all …]
/llvm-project-15.0.7/libcxx/include/__chrono/
H A Dyear_month_day.h68 _LIBCPP_HIDE_FROM_ABI constexpr days __to_days() const noexcept;
74 year_month_day year_month_day::__from_days(days __d) noexcept in __from_days()
92 days year_month_day::__to_days() const noexcept in __to_days()
143 year_month_day operator/(const year_month& __lhs, int __rhs) noexcept
151 year_month_day operator/(int __lhs, const month_day& __rhs) noexcept
159 year_month_day operator/(const month_day& __lhs, int __rhs) noexcept
215 chrono::day year_month_day_last::day() const noexcept in day()
257 year_month_day_last operator/(const year_month& __lhs, last_spec) noexcept
269 operator/(const month_day_last& __lhs, const year& __rhs) noexcept
307 year_month_day::year_month_day(const year_month_day_last& __ymdl) noexcept in year_month_day()
[all …]
H A Dyear_month_weekday.h44 const chrono::weekday_indexed& __wdival) noexcept in year_month_weekday()
46 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday(const sys_days& __sysd) noexcept in year_month_weekday()
63 _LIBCPP_HIDE_FROM_ABI inline constexpr bool ok() const noexcept in ok()
76 _LIBCPP_HIDE_FROM_ABI constexpr days __to_days() const noexcept;
80 year_month_weekday year_month_weekday::__from_days(days __d) noexcept in __from_days()
90 days year_month_weekday::__to_days() const noexcept in __to_days()
110 year_month_weekday operator/(const year& __lhs, const month_weekday& __rhs) noexcept
114 year_month_weekday operator/(int __lhs, const month_weekday& __rhs) noexcept
122 year_month_weekday operator/(const month_weekday& __lhs, int __rhs) noexcept
178 _LIBCPP_HIDE_FROM_ABI constexpr days __to_days() const noexcept;
[all …]
H A Dweekday.h61 unsigned char weekday::__weekday_from_days(int __days) noexcept in __weekday_from_days()
69 bool operator==(const weekday& __lhs, const weekday& __rhs) noexcept
73 bool operator!=(const weekday& __lhs, const weekday& __rhs) noexcept
77 bool operator< (const weekday& __lhs, const weekday& __rhs) noexcept
81 bool operator> (const weekday& __lhs, const weekday& __rhs) noexcept
93 weekday operator+(const weekday& __lhs, const days& __rhs) noexcept
101 weekday operator+(const days& __lhs, const weekday& __rhs) noexcept
105 weekday operator-(const weekday& __lhs, const days& __rhs) noexcept
109 days operator-(const weekday& __lhs, const weekday& __rhs) noexcept
117 weekday& weekday::operator+=(const days& __dd) noexcept
[all …]
/llvm-project-15.0.7/clang/test/CXX/special/class.copy/
H A Dimplicit-move.cpp9 ThrowingCopy() noexcept;
18 HasCopyConstructor() noexcept;
24 HasCopyAssignment() noexcept;
30 HasMoveConstructor() noexcept;
36 HasMoveAssignment() noexcept;
42 HasDestructor() noexcept;
43 ~HasDestructor() noexcept;
69 PrivateMove() noexcept;
83 PrivateDestructor() noexcept;
108 ContainsConst() noexcept;
[all …]
/llvm-project-15.0.7/clang/test/PCH/
H A Dcoroutines.cpp27 bool await_ready() noexcept;
29 void await_resume() noexcept;
34 void get_return_object() noexcept;
36 suspend_always final_suspend() noexcept;
37 void return_void() noexcept;
40 ~promise_type() noexcept;
41 void unhandled_exception() noexcept;
47 int get_return_object() noexcept;
50 void return_value(int) noexcept;
52 ~promise_type() noexcept;
[all …]

12345678910>>...41