/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/ |
D | member_function_pointer.pass.cpp | 86 test_member_function_pointer<void (Class::*)() noexcept>(); in main() 87 test_member_function_pointer<void (Class::*)(int) noexcept>(); in main() 88 test_member_function_pointer<void (Class::*)(int, char) noexcept>(); in main() 90 test_member_function_pointer<void (Class::*)() const noexcept>(); in main() 91 test_member_function_pointer<void (Class::*)(int) const noexcept>(); in main() 92 test_member_function_pointer<void (Class::*)(int, char) const noexcept>(); in main() 94 test_member_function_pointer<void (Class::*)() volatile noexcept>(); in main() 95 test_member_function_pointer<void (Class::*)(int) volatile noexcept>(); in main() 96 test_member_function_pointer<void (Class::*)(int, char) volatile noexcept>(); in main() 98 test_member_function_pointer<void (Class::*)(...) noexcept>(); in main() [all …]
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.general/ |
D | p3-0x.cpp | 5 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)); 15 static_assert(!noexcept(a.g1()), "exception-specification failure"); in testA() 16 static_assert(noexcept(a.g2()), "exception-specification failure"); in testA() 30 float &f(T*) const noexcept; 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)); [all …]
|
/external/clang/test/CXX/except/except.spec/ |
D | p14.cpp | 40 static_assert(noexcept(IC0()), "IC0() does not throw"); 41 static_assert(!noexcept(IC1()), "IC1() throws"); 46 NoThrowMove(NoThrowMove &&) noexcept; 48 NoThrowMove &operator=(NoThrowMove &&) const noexcept; 51 NoThrowMoveOnly(NoThrowMoveOnly &&) noexcept; 52 NoThrowMoveOnly &operator=(NoThrowMoveOnly &&) noexcept; 63 static_assert(!noexcept(X(X::val())), ""); 64 static_assert(!noexcept(X::ref() = X::val()), ""); 72 ThrowingBase() noexcept(false); 73 ThrowingBase(const ThrowingBase&) noexcept(false); [all …]
|
D | p3.cpp | 45 extern void (*r10)() noexcept; 46 extern void (*r10)() noexcept; 49 extern void (*r11)() noexcept; 50 extern void (*r11)() noexcept(true); 53 extern void (*r12)() noexcept; // expected-note {{previous declaration}} 54 extern void (*r12)() noexcept(false); // expected-error {{does not match}} 57 extern void (*r13)() noexcept(1 < 2); 58 extern void (*r13)() noexcept(2 > 1); 61 extern void (*r14)() noexcept(true); // expected-note {{previous declaration}} 62 extern void (*r14)() noexcept(false); // expected-error {{does not match}} [all …]
|
D | p5-virtual.cpp | 35 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); 54 virtual void g6() noexcept; // expected-note {{overridden virtual function is here}} 55 virtual void g7() noexcept; // expected-note {{overridden virtual function is here}} 57 virtual void g8() noexcept; // expected-note {{overridden virtual function is here}} 71 virtual void f7() noexcept; [all …]
|
D | p1.cpp | 29 void f1() noexcept { } in f1() 30 void f2() noexcept (true) { } in f2() 31 void f3() noexcept (false) { } in f3() 32 void f4() noexcept (1 < 2) { } in f4() 35 void foo() noexcept { } in foo() 36 void bar() noexcept (true) { } in bar() 39 void (*fptr1)() noexcept; 40 void (*fptr2)() noexcept (true); 46 void f() throw(int) noexcept { } // expected-error {{cannot have both}} in f() 47 void g() noexcept throw(int) { } // expected-error {{cannot have both}} in g() [all …]
|
D | p2-places.cpp | 46 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 typedef… 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(false); // expected-error {{not allowed beyond a single}} 62 void (**(*h())())() noexcept(false); // expected-error {{not allowed beyond a single}}
|
/external/clang/test/CXX/special/class.copy/ |
D | implicit-move.cpp | 9 ThrowingCopy() noexcept; 10 ThrowingCopy(ThrowingCopy &&) noexcept; 11 ThrowingCopy(const ThrowingCopy &) noexcept(false); 12 ThrowingCopy & operator =(ThrowingCopy &&) noexcept; 13 ThrowingCopy & operator =(const ThrowingCopy &) noexcept(false); 18 HasCopyConstructor() noexcept; 19 HasCopyConstructor(const HasCopyConstructor &) noexcept(false); 24 HasCopyAssignment() noexcept; 25 HasCopyAssignment & operator =(const HasCopyAssignment &) noexcept(false); 30 HasMoveConstructor() noexcept; [all …]
|
D | p13-0x.cpp | 97 friend constexpr U::U() noexcept; 98 friend constexpr U::U(U&&) noexcept; 99 friend constexpr U::U(const U&) noexcept; 101 friend constexpr V::V(V&&) noexcept; 102 friend constexpr V::V(const V&) noexcept; 104 friend constexpr W::W(W&&) noexcept; 105 friend constexpr W::W(const W&) noexcept; 106 friend constexpr S<U>::S() noexcept; 107 friend constexpr S<U>::S(S<U>&&) noexcept; 108 friend constexpr S<U>::S(const S<U>&) noexcept; [all …]
|
/external/libcxx/include/ |
D | compare | 26 constexpr bool is_eq (weak_equality cmp) noexcept { return cmp == 0; } 27 constexpr bool is_neq (weak_equality cmp) noexcept { return cmp != 0; } 28 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; } 29 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; } 30 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; } 31 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; } 85 constexpr explicit weak_equality(_EqResult __val) noexcept : __value_(__val) {} 91 …LINE_VISIBILITY friend constexpr bool operator==(weak_equality __v, _CmpUnspecifiedParam) noexcept; 92 …LINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, weak_equality __v) noexcept; 93 …LINE_VISIBILITY friend constexpr bool operator!=(weak_equality __v, _CmpUnspecifiedParam) noexcept; [all …]
|
D | chrono | 36 static constexpr Rep zero(); // noexcept in C++20 37 static constexpr Rep max(); // noexcept in C++20 38 static constexpr Rep min(); // noexcept in C++20 95 static constexpr duration zero(); // noexcept in C++20 96 static constexpr duration min(); // noexcept in C++20 97 static constexpr duration max(); // noexcept in C++20 137 static constexpr time_point min(); // noexcept in C++20 138 static constexpr time_point max(); // noexcept in C++20 275 static time_point now() noexcept; 276 static time_t to_time_t (const time_point& __t) noexcept; [all …]
|
D | span | 29 …ic_cast<ptrdiff_t>(sizeof(ElementType)) * Extent))> as_bytes(span<ElementType, Extent> s) noexcept; 33 …trdiff_t>(sizeof(ElementType)) * Extent))> as_writable_bytes(span<ElementType, Extent> s) noexcept; 54 constexpr span() noexcept; 58 constexpr span(element_type (&arr)[N]) noexcept; 60 constexpr span(array<value_type, N>& arr) noexcept; 62 constexpr span(const array<value_type, N>& arr) noexcept; 67 constexpr span(const span& other) noexcept = default; 69 constexpr span(const span<OtherElementType, OtherExtent>& s) noexcept; 70 ~span() noexcept = default; 71 constexpr span& operator=(const span& other) noexcept = default; [all …]
|
D | system_error | 23 virtual ~error_category() noexcept; 29 virtual const char* name() const noexcept = 0; 30 virtual error_condition default_error_condition(int ev) const noexcept; 31 virtual bool equivalent(int code, const error_condition& condition) const noexcept; 32 virtual bool equivalent(const error_code& code, int condition) const noexcept; 35 bool operator==(const error_category& rhs) const noexcept; 36 bool operator!=(const error_category& rhs) const noexcept; 37 bool operator<(const error_category& rhs) const noexcept; 40 const error_category& generic_category() noexcept; 41 const error_category& system_category() noexcept; [all …]
|
D | atomic | 36 template <class T> T kill_dependency(T y) noexcept; 55 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept; 56 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept; 57 void clear(memory_order m = memory_order_seq_cst) volatile noexcept; 58 void clear(memory_order m = memory_order_seq_cst) noexcept; 59 atomic_flag() noexcept = default; 66 atomic_flag_test_and_set(volatile atomic_flag* obj) noexcept; 69 atomic_flag_test_and_set(atomic_flag* obj) noexcept; 73 memory_order m) noexcept; 76 atomic_flag_test_and_set_explicit(atomic_flag* obj, memory_order m) noexcept; [all …]
|
/external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/ |
D | p2.cpp | 62 E1() noexcept = default; 63 E1(const E1&) noexcept = default; 64 E1(E1&&) noexcept = default; 65 E1 &operator=(const E1&) noexcept = default; 66 E1 &operator=(E1&&) noexcept = default; 67 ~E1() noexcept = default; 70 …E2() noexcept(false) = default; // expected-error {{exception specification of explicitly defaulte… 71 …E2(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly… 72 …E2(E2&&) noexcept(false) = default; // expected-error {{exception specification of explicitly defa… 73 …E2 &operator=(const E2&) noexcept(false) = default; // expected-error {{exception specification of… [all …]
|
/external/catch2/include/internal/ |
D | catch_stringref.h | 40 StringRef() noexcept in StringRef() 44 StringRef( StringRef const& other ) noexcept in StringRef() 49 StringRef( StringRef&& other ) noexcept in StringRef() 57 StringRef( char const* rawChars ) noexcept; 59 StringRef( char const* rawChars, size_type size ) noexcept in StringRef() 64 StringRef( std::string const& stdString ) noexcept in StringRef() 69 ~StringRef() noexcept { in ~StringRef() 73 auto operator = ( StringRef const &other ) noexcept -> StringRef& { 83 void swap( StringRef& other ) noexcept; 86 auto operator == ( StringRef const& other ) const noexcept -> bool; [all …]
|
/external/clang/test/SemaTemplate/ |
D | instantiate-exception-spec-cxx11.cpp | 19 static void f() noexcept(A<U>().n); 26 static_assert(noexcept(A<int>::B<char>::f()), ""); 29 static void recurse() noexcept(noexcept(S<N+1>::recurse())); // \ 37 void (*pFn2)() noexcept = &S<0>::recurse; // expected-note {{instantiation of exception spec}} expe… 52 static int f() noexcept(noexcept(A<T>().f("boo!"))) { return 0; } // \ in f() 64 void f() noexcept(T::error); 65 void (g)() noexcept(T::error); 71 template<typename T> T declval() noexcept; 79 void irrelevant(wrap &p) noexcept(is_movable<T>::value); 112 template <typename T> void f2(T) noexcept(T::throws); // expected-note {{candidate}} [all …]
|
/external/libcxx/include/experimental/ |
D | filesystem | 19 void swap(path& lhs, path& rhs) noexcept; 20 size_t hash_value(const path& p) noexcept; 22 bool operator==(const path& lhs, const path& rhs) noexcept; 23 bool operator!=(const path& lhs, const path& rhs) noexcept; 24 bool operator< (const path& lhs, const path& rhs) noexcept; 25 bool operator<=(const path& lhs, const path& rhs) noexcept; 26 bool operator> (const path& lhs, const path& rhs) noexcept; 27 bool operator>=(const path& lhs, const path& rhs) noexcept; 51 directory_iterator begin(directory_iterator iter) noexcept; 52 directory_iterator end(const directory_iterator&) noexcept; [all …]
|
/external/jemalloc_new/src/ |
D | jemalloc_cpp.cpp | 29 void *operator new(std::size_t size, const std::nothrow_t &) noexcept; 30 void *operator new[](std::size_t size, const std::nothrow_t &) noexcept; 31 void operator delete(void *ptr) noexcept; 32 void operator delete[](void *ptr) noexcept; 33 void operator delete(void *ptr, const std::nothrow_t &) noexcept; 34 void operator delete[](void *ptr, const std::nothrow_t &) noexcept; 38 void operator delete(void *ptr, std::size_t size) noexcept; 39 void operator delete[](void *ptr, std::size_t size) noexcept; 77 newImpl(std::size_t size) noexcept(IsNoExcept) { in newImpl() 96 operator new(std::size_t size, const std::nothrow_t &) noexcept { in operator new() [all …]
|
/external/libchrome/base/containers/ |
D | span.h | 185 constexpr span() noexcept : data_(nullptr), size_(0) { 189 constexpr span(T* data, size_t size) noexcept : data_(data), size_(size) { 195 constexpr span(T* begin, T* end) noexcept : span(begin, end - begin) { 203 constexpr span(T (&array)[N]) noexcept : span(base::data(array), N) {} 209 constexpr span(std::array<value_type, N>& array) noexcept 218 constexpr span(const std::array<value_type, N>& array) noexcept 225 constexpr span(Container& container) noexcept 231 span(const Container& container) noexcept 234 constexpr span(const span& other) noexcept = default; 247 constexpr span& operator=(const span& other) noexcept = default; [all …]
|
/external/libcxx/test/support/ |
D | archetypes.hpp | 54 TestBase() noexcept : value(0) { in TestBase() 58 explicit TestBase(int x) noexcept : value(x) { in TestBase() 62 TestBase(int x) noexcept : value(x) { in TestBase() 66 explicit TestBase(int, int y) noexcept : value(y) { in TestBase() 70 TestBase(int, int y) noexcept : value(y) { in TestBase() 74 explicit TestBase(std::initializer_list<int>& il, int = 0) noexcept in TestBase() 79 …explicit TestBase(std::initializer_list<int>& il, int = 0) noexcept : value(static_cast<int>(il.si… in TestBase() 82 TestBase& operator=(int xvalue) noexcept { in operator =() 94 explicit TestBase(TestBase const& o) noexcept : value(o.value) { in TestBase() 98 explicit TestBase(TestBase && o) noexcept : value(o.value) { in TestBase() [all …]
|
/external/clang/test/SemaCXX/ |
D | libstdcxx_pair_swap_hack.cpp | 26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { in do_swap() 32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member))); 36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member))); 55 void swap(X &, X &) noexcept; 59 static_assert(noexcept(px.swap(px)), ""); 60 static_assert(!noexcept(pi.swap(pi)), ""); 66 …void swap(CLASS &other) noexcept(noexcept(swap(*this, other))); // expected-error {{too many argum… 71 static_assert(!noexcept(pi.swap(pi)), ""); // expected-note {{in instantiation of}}
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
D | T.pass.cpp | 43 ThrowsCtorT(int) noexcept(false) {} in ThrowsCtorT() 44 ThrowsCtorT &operator=(int) noexcept { return *this; } in operator =() 48 ThrowsAssignT(int) noexcept {} in ThrowsAssignT() 49 ThrowsAssignT &operator=(int) noexcept(false) { return *this; } in operator =() 53 NoThrowT(int) noexcept {} in NoThrowT() 54 NoThrowT &operator=(int) noexcept { return *this; } in operator =() 65 ThrowsCtorT(int) noexcept(false) { throw 42; } in ThrowsCtorT() 66 ThrowsCtorT &operator=(int v) noexcept { in operator =() 74 MoveCrashes(int v = 0) noexcept : value{v} {} in MoveCrashes() 75 MoveCrashes(MoveCrashes &&) noexcept { assert(false); } in MoveCrashes() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
D | swap_noexcept.pass.cpp | 58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() 81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() 128 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 134 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 139 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 144 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 149 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 155 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 159 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 163 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
D | swap_noexcept.pass.cpp | 58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() 81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() 126 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 132 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 137 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 142 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 147 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 153 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 157 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() 161 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main() [all …]
|