Searched defs:noexcept (Results 1 - 25 of 63) sorted by relevance

123

/external/clang/test/CXX/except/except.spec/
H A Dp9-noexcept.cpp5 void target() noexcept
16 void reverse() noexcept(false) function
H A Dp2-places.cpp46 void f() noexcept(false);
48 void (*fp)() noexcept(false);
50 void g(void pfa() noexcept(false));
52 typedef int (*pf)() noexcept(false); // expected-error {{specifications are not allowed in typedefs}} typedef in namespace:noex
54 void (*h())() noexcept(false);
56 void (*i() noexcept(false))(void (*)() noexcept(true)) noexcept(false);
58 void (**k)(void pfa() noexcept(false)); // no-error
60 void (**j)() noexcept(fals
[all...]
H A Dp4.cpp12 void S::a() noexcept {} // expected-error {{does not match previous}}
13 S::~S() noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}}
14 void S::operator delete(void*) noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}}
17 void a() noexcept; // expected-note {{here}} member in struct:T
18 ~T() noexcept; // expected-note {{here}} member in struct:T
19 void operator delete(void*) noexcept; // expected-note {{here}} member in struct:T
22 void T::a() {} // expected-error {{missing exception specification 'noexcept'}}
35 template<typename T> U<T>::~U() noexcept(true) {} // expected-error {{exception specification in declaration does not match previous declaration}} function
36 template<typename T> void U<T>::operator delete(void*) noexcept(false) {} // expected-error {{exception specification in declaration does not match previous declaration}} function
H A Dp5-delayed.cpp6 struct D { struct X { virtual void f() throw(Y); }; struct Y : X { void f() noexcept; }; }; member in struct:D::Y
H A Dp5-virtual.cpp35 virtual void f7() noexcept; member in struct:Base
36 virtual void f8() noexcept; member in struct:Base
37 virtual void f9() noexcept(false);
38 virtual void f10() noexcept(false);
41 virtual void f12() noexcept; member in struct:Base
42 virtual void f13() noexcept(false);
54 virtual void g6() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
55 virtual void g7() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
57 virtual void g8() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
71 virtual void f7() noexcept; member in struct:Derived
76 virtual void f11() noexcept; member in struct:Derived
81 virtual void f15() noexcept; member in struct:Derived
[all...]
H A Dcanonical.cpp9 template <class _Tp> _Tp&& declval() noexcept; member in namespace:std
14 static const bool value = noexcept(_Tp(declval<_Args>()...));
25 noexcept(_is_nothrow_constructible<allocator_type>::value);
33 noexcept(_is_nothrow_constructible<_Compare>::value);
48 basic_string<T, _Traits, _Allocator>::basic_string() noexcept(_is_nothrow_constructible<allocator_type>::value) {} function in namespace:std
52 noexcept(_is_nothrow_constructible<_Compare>::value) {} function in namespace:std
/external/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-eh-terminate.cpp5 void never_throws() noexcept(true) { function
H A Dthrow-expression-cleanup.cpp8 Error(const X&) noexcept; member in struct:Error
H A Ddestructor-crash.cpp16 ~C() noexcept; member in struct:C
19 C::~C() noexcept {}
/external/clang/test/SemaCXX/
H A Dlibstdcxx_pair_swap_hack.cpp26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { function in namespace:std
32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member)));
36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member)));
42 // void swap(vector &other) noexcept(noexcept(do_swap(member, other.member)));
55 void swap(X &, X &) noexcept;
59 static_assert(noexcept(p
[all...]
H A Ddependent-noexcept-unevaluated.cpp5 declval() noexcept;
14 void swap(T& x, T& y) noexcept(some_trait<T>::value) function
26 void swap(array& a) noexcept(noexcept(::swap(declval<T&>(), declval<T&>())));
/external/libcxx/test/std/experimental/optional/optional.object/
H A Doptional_not_noexcept_destructible.fail.cpp21 ~X() noexcept(false) {} function in struct:X
/external/libcxxabi/test/
H A Dcatch_function_03.pass.cpp10 // Can a noexcept function pointer be caught by a non-noexcept catch clause?
11 // UNSUPPORTED: libcxxabi-no-exceptions, libcxxabi-no-noexcept-function-type
15 template<bool Noexcept> void f() noexcept(Noexcept) {} function
16 template<bool Noexcept> using FnType = void() noexcept(Noexcept);
H A Dcatch_member_function_pointer_02.pass.cpp10 // Can a noexcept member function pointer be caught by a non-noexcept catch
12 // UNSUPPORTED: libcxxabi-no-exceptions, libcxxabi-no-noexcept-function-type
17 template<bool Noexcept> void f() noexcept(Noexcept) {} function in struct:X
19 template<bool Noexcept> using FnType = void (X::*)() noexcept(Noexcept);
/external/clang/test/CXX/special/class.dtor/
H A Dp3.cpp7 A::~A() noexcept {} // expected-warning {{previously declared with an implicit exception specification}}
9 struct B { ~B() noexcept; }; // expected-note {{here}} member in struct:DR1492::B
16 template<typename T> C<T>::~C() noexcept {} // expected-error {{does not match previous}}
/external/clang/test/SemaTemplate/
H A Dexception-spec-crash.cpp18 noexcept(is_nothrow_move_constructible<allocator_type>::value);
22 Foo(Foo &&) noexcept = default; member in class:Foo
28 Foo &operator=(Foo &&) noexcept = default; member in class:Foo
/external/libcxx/test/libcxx/experimental/any/
H A Dsmall_type.pass.cpp29 SmallThrowsDtor(SmallThrowsDtor const &) noexcept {}
30 SmallThrowsDtor(SmallThrowsDtor &&) noexcept {}
31 ~SmallThrowsDtor() noexcept(false) {} function in class:SmallThrowsDtor
/external/libcxx/test/libcxx/utilities/any/
H A Dsmall_type.pass.cpp29 SmallThrowsDtor(SmallThrowsDtor const &) noexcept {}
30 SmallThrowsDtor(SmallThrowsDtor &&) noexcept {}
31 ~SmallThrowsDtor() noexcept(false) {} function in class:SmallThrowsDtor
/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Dctor.pass.cpp30 UserType() noexcept {}
31 constexpr explicit UserType(int d) noexcept : i(d) {} member in struct:UserType
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DPR23256_constrain_UTypes_ctor.pass.cpp37 // but it does instantiate the noexcept specifier and it will blow up there.
39 constexpr UnconstrainedCtor(T value) noexcept(noexcept(value_ = value)) function in struct:UnconstrainedCtor
53 noexcept(noexcept(value_ = value)) function in struct:ExplicitUnconstrainedCtor
H A Ddefault.pass.cpp31 NoExceptDefault() noexcept = default; member in struct:NoExceptDefault
82 static_assert(noexcept(std::tuple<NoExceptDefault>()), "");
83 static_assert(noexcept(std::tuple<NoExceptDefault, NoExceptDefault>()), "");
85 static_assert(!noexcept(std::tuple<ThrowingDefault, NoExceptDefault>()), "");
86 static_assert(!noexcept(std::tuple<NoExceptDefault, ThrowingDefault>()), "");
87 static_assert(!noexcept(std::tuple<ThrowingDefault, ThrowingDefault>()), "");
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A DT.pass.cpp18 // variant& operator=(T&&) noexcept(see below);
35 ThrowsCtorT(int) noexcept(false) {} function in struct:MetaHelpers::ThrowsCtorT
36 ThrowsCtorT &operator=(int) noexcept { return *this; }
40 ThrowsAssignT(int) noexcept {}
41 ThrowsAssignT &operator=(int) noexcept(false) { return *this; } function in struct:MetaHelpers::ThrowsAssignT
45 NoThrowT(int) noexcept {}
46 NoThrowT &operator=(int) noexcept { return *this; }
57 ThrowsCtorT(int) noexcept(false) { throw 42; } function in struct:RuntimeHelpers::ThrowsCtorT
58 ThrowsCtorT &operator=(int v) noexcept {
67 ThrowsAssignT(int v) noexcept member in struct:RuntimeHelpers::ThrowsAssignT
74 NoThrowT(int v) noexcept : value(v) {} member in struct:NoThrowT
[all...]
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A DT.pass.cpp17 // template <class T> constexpr variant(T&&) noexcept(see below);
33 ThrowsT(int) noexcept(false) {} function in struct:ThrowsT
37 NoThrowT(int) noexcept(true) {} function in struct:NoThrowT
H A Ddefault.pass.cpp17 // constexpr variant() noexcept(see below);
31 NotNoexcept() noexcept(false) {} function in struct:NotNoexcept
/external/clang/test/Analysis/
H A Dnew-with-exceptions.cpp20 void *operator new(size_t) noexcept; member in struct:NoExcept
46 extern void *operator new[](size_t, int) noexcept;

Completed in 487 milliseconds

123