| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | nullptr.cpp | 12 typedef decltype(nullptr) nullptr_t; typedef 14 nullptr_t get_nullptr(); 23 return typeid(nullptr_t); in f2() 28 nullptr_t b; 42 nullptr_t pr23833_b(nullptr_t &n) { return n; } in pr23833_b() 45 struct X2 { operator const nullptr_t&(); }; 68 constexpr nullptr_t null = nullptr; 69 void f(nullptr_t);
|
| /llvm-project-15.0.7/clang/test/CXX/drs/ |
| H A D | dr15xx.cpp | 62 using nullptr_t = decltype(nullptr); in test() typedef 63 composite_pointer_type_is_unord<nullptr_t, nullptr_t, nullptr_t>(); in test() 118 using nullptr_t = decltype(nullptr); in test_overload() typedef 119 void(Wrap<nullptr_t>() == Wrap<nullptr_t>()); in test_overload() 120 void(Wrap<nullptr_t>() != Wrap<nullptr_t>()); in test_overload() 121 void(Wrap<nullptr_t>() < Wrap<nullptr_t>()); // expected-error {{invalid operands}} in test_overload() 122 void(Wrap<nullptr_t>() > Wrap<nullptr_t>()); // expected-error {{invalid operands}} in test_overload() 123 void(Wrap<nullptr_t>() <= Wrap<nullptr_t>()); // expected-error {{invalid operands}} in test_overload() 124 void(Wrap<nullptr_t>() >= Wrap<nullptr_t>()); // expected-error {{invalid operands}} in test_overload() 128 void(Wrap<nullptr_t>() == Wrap<int*>()); in test_overload() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | nullptr.cpp | 4 typedef decltype(nullptr) nullptr_t; typedef 13 nullptr_t f(nullptr_t null) in f() 61 nullptr_t *pn = &null; in f() 117 static_assert(__is_scalar(nullptr_t), ""); 118 static_assert(__is_pod(nullptr_t), ""); 119 static_assert(sizeof(nullptr_t) == sizeof(void*), ""); 151 operator nullptr_t() const; 165 template<typename T, nullptr_t Value>
|
| H A D | constexpr-builtin-bit-cast.cpp | 230 typedef decltype(nullptr) nullptr_t; typedef 243 nullptr_t npt = __builtin_bit_cast(nullptr_t, 0ul); in test_to_nullptr() 249 nullptr_t npt2 = __builtin_bit_cast(nullptr_t, im); in test_to_nullptr() 262 constexpr nullptr_t test_nullptr_bad = __builtin_bit_cast(nullptr_t, returns_local());
|
| H A D | nullability.cpp | 10 typedef decltype(nullptr) nullptr_t; typedef 18 typedef nullptr_t _Nonnull nonnull_nullptr_t; // expected-error{{nullability specifier '_Nonnull' c… 34 typedef AddNonNull<nullptr_t>::type nonnull_int_ptr_3; // expected-note{{in instantiation of templa…
|
| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | catch_reference_nullptr.pass.cpp | 30 using nullptr_t = decltype(nullptr); in main() typedef 33 catch_nullptr_test<nullptr_t, true>(); in main() 34 catch_nullptr_test<const nullptr_t, true>(); in main() 35 catch_nullptr_test<volatile nullptr_t, true>(); in main() 36 catch_nullptr_test<const volatile nullptr_t, true>(); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.types/ |
| H A D | nullptr_t.pass.cpp | 19 A(std::nullptr_t) {} in A() 67 static_assert(sizeof(std::nullptr_t) == sizeof(void*), in main() 71 test_conversions<std::nullptr_t>(); in main() 81 static_assert(!has_less<std::nullptr_t>::value, ""); in main() 83 test_comparisons<std::nullptr_t>(); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.convertible/ |
| H A D | convertible_to.pass.cpp | 21 using nullptr_t = decltype(nullptr); typedef 53 CheckNotConvertibleTo<T, nullptr_t>(); in CommonlyNotConvertibleTo() 66 CheckNotConvertibleTo<bool, nullptr_t>(); in CommonlyNotConvertibleTo() 75 template <std::same_as<nullptr_t> > 77 CheckNotConvertibleTo<nullptr_t, void>(); in CommonlyNotConvertibleTo() 78 CheckConvertibleTo<nullptr_t, nullptr_t>(); in CommonlyNotConvertibleTo() 79 CheckConvertibleTo<nullptr_t, void*>(); in CommonlyNotConvertibleTo() 80 CheckConvertibleTo<nullptr_t, int Empty::*>(); in CommonlyNotConvertibleTo() 82 CheckNotConvertibleTo<nullptr_t, int[2]>(); in CommonlyNotConvertibleTo() 83 CheckConvertibleTo<nullptr_t, void (*)()>(); in CommonlyNotConvertibleTo() [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.arg/temp.arg.nontype/ |
| H A D | p1-11.cpp | 4 typedef decltype(nullptr) nullptr_t; typedef 13 constexpr std::nullptr_t get_nullptr() { return nullptr; } in get_nullptr() 15 constexpr std::nullptr_t np = nullptr; 17 std::nullptr_t nonconst_np; // expected-note{{declared here}} 58 template<std::nullptr_t np> struct NP { // expected-note 2{{template parameter is declared here}}
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/ |
| H A D | equality_comparable_with.compile.pass.cpp | 946 static_assert(!check_equality_comparable_with<std::nullptr_t, int>()); 956 static_assert(check_equality_comparable_with<std::nullptr_t, 960 static_assert(check_equality_comparable_with<std::nullptr_t, 962 static_assert(check_equality_comparable_with<std::nullptr_t, 971 static_assert(check_equality_comparable_with<std::nullptr_t, 976 std::nullptr_t, int (S::*)() volatile & noexcept>()); 977 static_assert(check_equality_comparable_with<std::nullptr_t, 987 static_assert(check_equality_comparable_with<std::nullptr_t, 992 std::nullptr_t, int (S::*)() volatile && noexcept>()); 993 static_assert(check_equality_comparable_with<std::nullptr_t, [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/ |
| H A D | totally_ordered_with.pass.cpp | 908 static_assert(!check_totally_ordered_with<std::nullptr_t, int>()); 910 static_assert(!check_totally_ordered_with<std::nullptr_t, int*>()); 926 static_assert(!check_totally_ordered_with<std::nullptr_t, 937 static_assert(!check_totally_ordered_with<std::nullptr_t, 941 static_assert(!check_totally_ordered_with<std::nullptr_t, 943 static_assert(!check_totally_ordered_with<std::nullptr_t, 948 static_assert(!check_totally_ordered_with < std::nullptr_t, 952 static_assert(!check_totally_ordered_with < std::nullptr_t, 956 static_assert(!check_totally_ordered_with < std::nullptr_t, 958 static_assert(!check_totally_ordered_with<std::nullptr_t, [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.concept/ |
| H A D | three_way_comparable_with.compile.pass.cpp | 93 static_assert(!check_three_way_comparable_with<std::nullptr_t, int>()); 94 static_assert(!check_three_way_comparable_with<std::nullptr_t, int*>()); 95 static_assert(!check_three_way_comparable_with<std::nullptr_t, int[5]>()); 96 static_assert(!check_three_way_comparable_with<std::nullptr_t, int (*)()>()); 97 static_assert(!check_three_way_comparable_with<std::nullptr_t, int (&)()>()); 98 static_assert(!check_three_way_comparable_with<std::nullptr_t, int (S::*)()>()); 101 static_assert(!check_three_way_comparable_with<void, std::nullptr_t>());
|
| /llvm-project-15.0.7/libcxx/include/__memory/ |
| H A D | unique_ptr.h | 262 unique_ptr& operator=(nullptr_t) _NOEXCEPT { 484 unique_ptr& operator=(nullptr_t) _NOEXCEPT { 533 void reset(nullptr_t = nullptr) _NOEXCEPT { 626 operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t) 635 operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x) 644 operator>(const unique_ptr<_T1, _D1>& __x, nullptr_t) 652 operator>(nullptr_t, const unique_ptr<_T1, _D1>& __x) 660 operator<=(const unique_ptr<_T1, _D1>& __x, nullptr_t) 668 operator<=(nullptr_t, const unique_ptr<_T1, _D1>& __x) 676 operator>=(const unique_ptr<_T1, _D1>& __x, nullptr_t) [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/propagate_const.relops/ |
| H A D | not_equal.pass.cpp | 23 using std::nullptr_t; 29 constexpr bool operator!=(const X &, const nullptr_t &) { in operator !=() argument 33 constexpr bool operator!=(const nullptr_t &, const X &) { in operator !=() argument
|
| H A D | equal.pass.cpp | 23 using std::nullptr_t; 29 constexpr bool operator==(const X &, const nullptr_t &) { in operator ==() argument 33 constexpr bool operator==(const nullptr_t &, const X &) { in operator ==() argument
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.constructible/ |
| H A D | constructible_from.compile.pass.cpp | 81 test<void*, std::nullptr_t>(); in test() 84 test<int*, std::nullptr_t>(); in test() 93 test<int (*)(int), std::nullptr_t>(); in test() 97 test<void (Empty::*)(const int&), std::nullptr_t>(); in test()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | deduction-crash.cpp | 121 typedef decltype(nullptr) nullptr_t; 122 template <class P, nullptr_t> struct A; 124 template <template <class, nullptr_t> class S, class T> struct A<S<T, nullptr>, nullptr> { 127 template <class T, nullptr_t i> struct B {};
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-noundef.cpp | 119 typedef decltype(nullptr) nullptr_t; typedef 135 nullptr_t ret_npt() { in ret_npt() 138 void pass_npt(nullptr_t t) { in pass_npt()
|
| /llvm-project-15.0.7/libcxx/include/__coroutine/ |
| H A D | coroutine_handle.h | 39 constexpr coroutine_handle(nullptr_t) noexcept {} 42 coroutine_handle& operator=(nullptr_t) noexcept { 114 constexpr coroutine_handle(nullptr_t) noexcept {} 126 coroutine_handle& operator=(nullptr_t) noexcept {
|
| /llvm-project-15.0.7/libcxx/test/libcxx/language.support/support.types/ |
| H A D | cstddef.compile.pass.cpp | 23 using NullptrT = ::nullptr_t; 26 using StdNullptrT = std::nullptr_t;
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | memory | 436 unique_ptr(nullptr_t) noexcept : unique_ptr() { } 448 unique_ptr& operator=(nullptr_t) noexcept; 478 unique_ptr(nullptr_t) noexcept : unique_ptr() { } 485 unique_ptr& operator=(nullptr_t) noexcept; 497 void reset(nullptr_t) noexcept; 528 bool operator<(const unique_ptr<T, D>& x, nullptr_t); 530 bool operator<(nullptr_t, const unique_ptr<T, D>& y); 536 bool operator>(const unique_ptr<T, D>& x, nullptr_t); 538 bool operator>(nullptr_t, const unique_ptr<T, D>& y); 570 template <class D> shared_ptr(nullptr_t p, D d); [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator-cxx-std-suppression.h | 116 typedef decltype(nullptr) nullptr_t; typedef 122 constexpr shared_ptr(nullptr_t); 141 shared_ptr<_Tp>::shared_ptr(nullptr_t) { in shared_ptr() argument
|
| /llvm-project-15.0.7/clang/test/Lexer/ |
| H A D | cxx0x_keyword_as_cxx98.cpp | 8 struct nullptr_t; 9 typedef nullptr_t nullptr; // expected-warning {{'nullptr' is a keyword in C++11}} typedef
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | min_allocator.h | 207 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument 224 TEST_CONSTEXPR_CXX14 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument 248 TEST_CONSTEXPR_CXX14 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument 318 TEST_CONSTEXPR_CXX14 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer() argument 377 …friend TEST_CONSTEXPR_CXX14 bool operator==(min_pointer x, std::nullptr_t) {return x.ptr_ == nullp… 378 …friend TEST_CONSTEXPR_CXX14 bool operator!=(min_pointer x, std::nullptr_t) {return x.ptr_ != nullp… 379 …friend TEST_CONSTEXPR_CXX14 bool operator==(std::nullptr_t, min_pointer x) {return x.ptr_ == nullp… 380 …friend TEST_CONSTEXPR_CXX14 bool operator!=(std::nullptr_t, min_pointer x) {return x.ptr_ != nullp…
|
| /llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/ |
| H A D | stddef_h.pass.cpp | 42 static_assert((std::is_same<decltype(nullptr), nullptr_t>::value), in main() 44 static_assert(sizeof(nullptr_t) == sizeof(void*), in main()
|