/external/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);
|
H A D | mangle-ms-cxx11.cpp | 13 namespace std { typedef decltype(__nullptr) nullptr_t; } typedef in namespace:std 14 void Null(std::nullptr_t) {}
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
H A D | NullPtr.cpp | 32 const std::nullptr_t nullptr;
|
H A D | NullPtr.h | 31 // nullptr_t type and nullptr object. They are defined in the same namespaces they 36 // libstdc++ supports nullptr_t starting with gcc 4.6. STLport doesn't define it. 39 typedef decltype(nullptr) nullptr_t; typedef in namespace:std 48 class nullptr_t { class in namespace:std 50 // Required in order to create const nullptr_t objects without an 53 // const std::nullptr_t nullptr; 54 nullptr_t() { } function in class:std::nullptr_t 65 WTF_EXPORT extern const std::nullptr_t nullptr;
|
H A D | RawPtr.h | 59 RawPtr(std::nullptr_t) : m_ptr(0) { } 113 RawPtr& operator=(std::nullptr_t)
|
H A D | HashTraits.h | 149 typedef std::nullptr_t EmptyValueType; 163 static PassOwnPtr<P> passOut(std::nullptr_t) { return nullptr; } 167 static PeekOutType peek(std::nullptr_t) { return 0; } 171 typedef std::nullptr_t EmptyValueType; 190 static PassOutType passOut(std::nullptr_t) { return nullptr; } 194 static PeekOutType peek(std::nullptr_t) { return 0; }
|
H A D | RefPtr.h | 40 ALWAYS_INLINE RefPtr(std::nullptr_t) : m_ptr(0) { } 78 RefPtr& operator=(std::nullptr_t) { clear(); return *this; } 210 ALWAYS_INLINE RefPtrValuePeeker(std::nullptr_t): m_ptr(0) { }
|
H A D | WeakPtr.h | 88 WeakPtr(std::nullptr_t) { }
|
H A D | OwnPtr.h | 47 OwnPtr(std::nullptr_t) : m_ptr(0) { } 89 OwnPtr& operator=(std::nullptr_t) { clear(); return *this; }
|
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/ |
H A D | p1-11.cpp | 4 typedef decltype(nullptr) nullptr_t; typedef in namespace:std 13 constexpr std::nullptr_t get_nullptr() { return nullptr; } 15 constexpr std::nullptr_t np = nullptr; 17 std::nullptr_t nonconst_np; // expected-note{{declared here}} 27 IP<nonconst_np> ip5; // expected-error{{non-type template argument of type 'std::nullptr_t' (aka 'nullptr_t') is not a constant expression}} \ 58 template<std::nullptr_t np> struct NP { // expected-note 2{{template parameter is declared here}} 65 NP<0> np4; // expected-error{{null non-type template argument must be cast to template parameter type 'std::nullptr_t' (aka 'nullptr_t')}} 67 NP<i> np5; // expected-error{{non-type template argument of type 'const int' cannot be converted to a value of type 'std::nullptr_t'}} [all...] |
/external/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}}
|
/external/clang/test/SemaCXX/ |
H A D | nullptr.cpp | 4 typedef decltype(nullptr) nullptr_t; typedef 13 nullptr_t f(nullptr_t null) 60 (void)&nullptr; // expected-error {{cannot take the address of an rvalue of type 'nullptr_t'}} 61 nullptr_t *pn = &null; 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 Valu [all...] |
H A D | warn-consumed-analysis.cpp | 12 typedef decltype(nullptr) nullptr_t; typedef 20 ConsumableClass(nullptr_t p) RETURN_TYPESTATE(consumed); 27 ConsumableClass<T>& operator=(nullptr_t) SET_TYPESTATE(consumed); 42 bool operator!=(nullptr_t) const TEST_TYPESTATE(unconsumed); 43 bool operator==(nullptr_t) const TEST_TYPESTATE(consumed);
|
/external/clang/test/Analysis/ |
H A D | nullptr.cpp | 85 typedef decltype(nullptr) nullptr_t; typedef 88 const nullptr_t &r = nullptr;
|
/external/clang/test/SemaTemplate/ |
H A D | deduction-crash.cpp | 125 typedef decltype(nullptr) nullptr_t; typedef in namespace:PR14281_part2 126 template <class P, nullptr_t> struct A; 128 template <template <class, nullptr_t> class S, class T> struct A<S<T, nullptr>, nullptr> { 131 template <class T, nullptr_t i> struct B {};
|
/external/clang/lib/Headers/ |
H A D | stddef.h | 105 namespace std { typedef decltype(nullptr) nullptr_t; } typedef in namespace:std 106 using ::std::nullptr_t;
|
/external/libcxx/test/language.support/support.types/ |
H A D | Android.mk | 39 test_name := language.support/support.types/nullptr_t 40 test_src := nullptr_t.pass.cpp
|
H A D | nullptr_t.pass.cpp | 14 // typedef decltype(nullptr) nullptr_t; 18 A(std::nullptr_t) {} 23 static_assert(sizeof(std::nullptr_t) == sizeof(void*), 24 "sizeof(std::nullptr_t) == sizeof(void*)");
|
/external/libcxx/test/support/ |
H A D | min_allocator.h | 29 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 46 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 70 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 140 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 205 operator==(min_pointer<T> x, std::nullptr_t) 213 operator==(std::nullptr_t, min_pointer<T> x) 221 operator!=(min_pointer<T> x, std::nullptr_t) 229 operator!=(std::nullptr_t, min_pointer<T> x)
|
/external/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/ |
H A D | nullptr.pass.cpp | 12 // nullptr_t 48 test_nullptr<std::nullptr_t>();
|
/external/llvm/include/llvm/ADT/ |
H A D | IntrusiveRefCntPtr.h | 245 bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) { 250 bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) { 255 bool operator!=(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) { 260 bool operator!=(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
|
H A D | PointerUnion.h | 159 const PointerUnion &operator=(std::nullptr_t) { 309 const PointerUnion3 &operator=(std::nullptr_t) { 424 const PointerUnion4 &operator=(std::nullptr_t) {
|
/external/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
H A D | Android.mk | 67 test_name := utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t 68 test_src := nullptr_t.pass.cpp
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
H A D | Android.mk | 91 test_name := utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t 92 test_src := nullptr_t.pass.cpp
|
/external/clang/test/CXX/drs/ |
H A D | dr1xx.cpp | 301 using nullptr_t = decltype(nullptr); 302 virtual void np() throw(nullptr_t*); // expected-error {{more lax}} FIXME: This is valid. 303 virtual void npm() throw(nullptr_t*); // expected-error {{more lax}} FIXME: This is valid. 304 virtual void nr() throw(nullptr_t&); // expected-error {{more lax}} This is not.
|