/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 | 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 …]
|
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 | 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 …]
|
D | exception | 23 exception() noexcept; 24 exception(const exception&) noexcept; 25 exception& operator=(const exception&) noexcept; 26 virtual ~exception() noexcept; 27 virtual const char* what() const noexcept; 34 bad_exception() noexcept; 35 bad_exception(const bad_exception&) noexcept; 36 bad_exception& operator=(const bad_exception&) noexcept; 37 virtual ~bad_exception() noexcept; 38 virtual const char* what() const noexcept; [all …]
|
D | new | 24 bad_alloc() noexcept; 25 bad_alloc(const bad_alloc&) noexcept; 26 bad_alloc& operator=(const bad_alloc&) noexcept; 27 virtual const char* what() const noexcept; 33 bad_array_new_length() noexcept; 40 new_handler set_new_handler(new_handler new_p) noexcept; 41 new_handler get_new_handler() noexcept; 44 template <class T> constexpr T* launder(T* p) noexcept; // C++17 49 void* operator new(std::size_t size, const std::nothrow_t&) noexcept; // replaceable, nodiscard i… 51 … const std::nothrow_t&) noexcept; // replaceable, C++17, nodiscard in C++2a [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/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/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/ |
D | member_function_pointer.pass.cpp | 18 // `test_is_member_function<void() noexcept> has the same mangled despite being 85 // Noexcept qualifiers in main() 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() [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()), ""); 68 // Part of DR1351: the implicit exception-specification is noexcept(false) if 70 // "any". Hence it is compatible with noexcept(false). [all …]
|
D | p3.cpp | 44 // noexcept is compatible with itself 45 extern void (*r10)() noexcept; 46 extern void (*r10)() noexcept; 48 // noexcept(true) is compatible with noexcept 49 extern void (*r11)() noexcept; 50 extern void (*r11)() noexcept(true); 52 // noexcept(false) isn't 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); [all …]
|
D | p1.cpp | 25 // Simple parser tests, noexcept specification. 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() [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 …]
|
/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 …]
|
/external/libcxx/test/std/atomics/atomics.types.generic/ |
D | trivially_copyable.fail.cpp | 15 // bool is_lock_free() const volatile noexcept; 16 // bool is_lock_free() const noexcept; 17 // void store(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; 18 // void store(T desr, memory_order m = memory_order_seq_cst) noexcept; 19 // T load(memory_order m = memory_order_seq_cst) const volatile noexcept; 20 // T load(memory_order m = memory_order_seq_cst) const noexcept; 21 // operator T() const volatile noexcept; 22 // operator T() const noexcept; 23 // T exchange(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; 24 // T exchange(T desr, memory_order m = memory_order_seq_cst) noexcept; [all …]
|
D | trivially_copyable.pass.cpp | 21 // bool is_lock_free() const volatile noexcept; 22 // bool is_lock_free() const noexcept; 23 // void store(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; 24 // void store(T desr, memory_order m = memory_order_seq_cst) noexcept; 25 // T load(memory_order m = memory_order_seq_cst) const volatile noexcept; 26 // T load(memory_order m = memory_order_seq_cst) const noexcept; 27 // operator T() const volatile noexcept; 28 // operator T() const noexcept; 29 // T exchange(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; 30 // T exchange(T desr, memory_order m = memory_order_seq_cst) noexcept; [all …]
|
/external/clang/test/SemaCXX/ |
D | implicit-exception-spec.cpp | 11 // Noexcept::Noexcept() is implicitly declared as noexcept(false), because it 14 // If noexcept(Noexcept()) is false, then Noexcept() is a constant expression, 15 // so noexcept(Noexcept()) is true. But if noexcept(Noexcept()) is true, then 16 // Noexcept::Noexcept is not declared constexpr, therefore noexcept(Noexcept()) 18 bool ThrowSomething() noexcept(false); 20 …bool b = noexcept(ConstExpr()) && ThrowSomething(); // expected-error {{cannot use defaulted defau… 25 // knowing whether it produces a noexcept expression. 27 …int n = ExceptionIf<noexcept(TemplateArg())>::f(); // expected-error {{cannot use defaulted defaul… 35 …int n = ExceptionIf<noexcept(Nested())>::f(); // expected-note {{implicit default constructor for … 44 int n = ExceptionIf<noexcept(Nested2())>::f(); [all …]
|
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))); 42 // void swap(vector &other) noexcept(noexcept(do_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/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/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/libchrome/base/containers/ |
D | span.h | 162 // Furthermore, all constructors and methods are marked noexcept due to the lack 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; [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/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 …]
|