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

12

/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-warning {{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-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
H A Dp1.cpp25 // Simple parser tests, noexcept specification.
29 void f1() noexcept { }
30 void f2() noexcept (true) { } function in namespace:noex
31 void f3() noexcept (false) { } function in namespace:noex
32 void f4() noexcept (1 < 2) { }
35 void foo() noexcept { }
36 void bar() noexcept (true) { } function in class:noex::CA1
39 void (*fptr1)() noexcept; member in namespace:noex
40 void (*fptr2)() noexcept (true);
46 void f() throw(int) noexcept { } // expecte
68 noexcept(sizeof(T) == sizeof(int)) || noexcept(f(x)) argument
[all...]
/external/clang/test/CodeGenCXX/
H A Dthrow-expression-cleanup.cpp8 Error(const X&) noexcept; member in struct:Error
H A Dcxx0x-delegating-ctors.cpp5 ~non_trivial() noexcept(false);
8 non_trivial::~non_trivial() noexcept(false) {} function
H A Dcxx1y-sized-deallocation.cpp17 void operator delete(void *) noexcept; member in struct:E
18 void operator delete[](void *) noexcept; member in struct:E
23 void operator delete(void *, size_t) noexcept; member in struct:F
24 void operator delete[](void *, size_t) noexcept; member in struct:F
/external/libcxx/test/utilities/optional/optional.object/
H A Doptional_not_noexcept_destructible.fail.cpp22 ~X() noexcept(false) {} function in struct:X
/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/SemaCXX/
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&>())));
H A Dcxx11-inheriting-ctors.cpp13 noexcept(noexcept(T(X(), static_cast<A &&>(a)))) function in struct:PR15757::T
H A Dnew-null.cpp9 return nullptr; // expected-warning {{'operator new' should not return a null pointer unless it is declared 'throw()' or 'noexcept'}}
11 void *operator new[](size_t n) noexcept {
25 // expected-warning@-2 {{'operator new[]' should not return a null pointer unless it is declared 'throw()' or 'noexcept'}}
49 void *operator new(size_t n) noexcept(B) { function in struct:S4
H A Dcxx0x-cursory-default-delete.cpp64 ~except_spec_d_bad() noexcept; member in struct:except_spec_d_bad
68 except_spec_d_bad::~except_spec_d_bad() noexcept = default;
86 void operator delete(void *) noexcept = delete; // expected-error {{deleted definition must be first declaration}} expected-note {{implicit}}
/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/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++98.cc16 noexcept, enumerator in enum:cxx11_keywords
/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;
/external/clang/test/CXX/special/class.copy/
H A Dp15-0x.cpp27 template<typename T> T &&declval() noexcept; member in namespace:PR11418
31 NonPOD(const NonPOD &) noexcept; member in struct:PR11418::NonPOD
32 NonPOD(NonPOD &&) noexcept; member in struct:PR11418::NonPOD
39 static_assert(noexcept(declval<X>()), "noexcept isn't working at all");
40 static_assert(noexcept(X(declval<X&>())), "copy constructor can't throw");
41 static_assert(noexcept(X(declval<X>())), "move constructor can't throw");
/external/libcxxabi/test/
H A Dtest_vector3.cpp31 noexcept(false) function in struct:test1::A
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp8.cpp11 /*static*/ constexpr void *operator new(size_t) noexcept; member in struct:S
33 constexpr void *S::operator new(size_t) noexcept { return 0; }
/external/clang/test/Lexer/
H A Dcxx0x_keyword_as_cxx98.cpp33 int noexcept; // expected-warning {{'noexcept' is a keyword in C++11}} variable
H A Dkeywords_test.cpp26 CXX11_KEYWORD(noexcept); variable
/external/clang/test/CXX/drs/
H A Ddr14xx.cpp45 friend constexpr A::A() noexcept; member in struct:dr1460::X
46 friend constexpr B::B() noexcept; // expected-error {{follows non-constexpr declaration}} member in struct:dr1460::X
47 friend constexpr C::C() noexcept; member in struct:dr1460::X
48 friend constexpr D::D() noexcept; member in struct:dr1460::X
49 friend constexpr E::E() noexcept; // expected-error {{follows non-constexpr declaration}} member in struct:dr1460::X
50 friend constexpr F::F() noexcept; member in struct:dr1460::X
/external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
H A Dp2.cpp62 E1() noexcept = default; member in struct:E1
63 E1(const E1&) noexcept = default; member in struct:E1
64 E1(E1&&) noexcept = default; member in struct:E1
65 E1 &operator=(const E1&) noexcept = default; member in struct:E1
66 E1 &operator=(E1&&) noexcept = default; member in struct:E1
67 ~E1() noexcept = default; member in struct:E1
70 E2() noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted default constructor does not match the calculated one}}
71 E2(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy constructor does not match the calculated one}}
72 E2(E2&&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted move constructor does not match the calculated one}}
73 E2 &operator=(const E2&) noexcept(fals
[all...]

Completed in 3643 milliseconds

12