/external/clang/test/CXX/lex/lex.literal/lex.ext/ |
p3.cpp | 3 int &operator "" _x1 (unsigned long long); 6 double &operator "" _x1 (const char *); 9 template<char...> char &operator "" _x1 (); 14 double &operator "" _x2 (const char *); 17 template<char...Cs> constexpr int operator "" _x3() { return sizeof...(Cs); }
|
p4.cpp | 3 int &operator "" _x1 (long double); 6 double &operator "" _x1 (const char *); 9 template<char...> char &operator "" _x1 (); 14 double &operator "" _x2 (const char *); 17 template<char...Cs> constexpr int operator "" _x3() { return sizeof...(Cs); }
|
p7.cpp | 13 long double operator "" _w(long double); 14 std::string operator "" _w(const char16_t*, size_t); 15 unsigned operator "" _w(const char*); 17 auto v1 = 1.2_w; // calls operator "" _w(1.2L) 18 auto v2 = u"one"_w; // calls operator "" _w(u"one", 3) 19 auto v3 = 12_w; // calls operator "" _w("12") 20 "two"_w; // expected-error {{no matching literal operator}}
|
/external/clang/test/PCH/ |
cxx-typeid.h | 13 bool operator==(const type_info& rhs) const; 14 bool operator!=(const type_info& rhs) const; 21 type_info& operator=(const type_info& rhs); 29 bad_cast& operator=(const bad_cast&); 38 bad_typeid& operator=(const bad_typeid&);
|
/external/clang/test/SemaTemplate/ |
dependent-class-member-operator.cpp | 4 template<class T> struct C1 { void operator()(T); }; 8 foo(&C1<int>::operator()); 9 foo(&C1<int>::operator+); // expected-error {{no member named 'operator+' in 'C1<int>'}} 10 foo(&C2<int>::operator+); // expected-error {{implicit instantiation of undefined template 'C2<int>'}}
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
new1.cpp | 3 // right pointer to operator delete. 13 void * operator new[] (size_t s) throw (std::bad_alloc) 15 ptr = operator new (s); 19 void operator delete[] (void *p) throw () 23 operator delete (p);
|
new7.cpp | 16 void* operator new ( std::size_t n ) throw ( std::bad_alloc ) 19 return ::operator new( n ); 21 void operator delete( void* p, std::size_t n ) throw() 24 ::operator delete( p ); 33 X* x = new X; // gcc 3.0 fails to call operator delete when X::X throws
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
new1.cpp | 3 // right pointer to operator delete. 13 void * operator new[] (size_t s) throw (std::bad_alloc) 15 ptr = operator new (s); 19 void operator delete[] (void *p) throw () 23 operator delete (p);
|
new7.cpp | 16 void* operator new ( std::size_t n ) throw ( std::bad_alloc ) 19 return ::operator new( n ); 21 void operator delete( void* p, std::size_t n ) throw() 24 ::operator delete( p ); 33 X* x = new X; // gcc 3.0 fails to call operator delete when X::X throws
|
/external/clang/test/CXX/special/class.copy/ |
p28-cxx11.cpp | 5 // called by a defaulted assignment operator, and the selected operator might 7 // 'operator=', for instance). 9 A &operator=(const A &); 12 A &operator=(T &&) { return T::error; } // expected-error {{no member named 'error' in 'A'}} 16 B &operator=(B &&); 19 B &B::operator=(B &&) = default; // expected-note {{here}}
|
/external/clang/test/SemaCXX/ |
builtin-ptrtomember-ambig.cpp | 6 operator const A*(); 11 operator A*(); 21 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ 22 // expected-note {{built-in candidate operator->*(const struct A *, const int struct A::*)}} \ 23 // expected-note {{built-in candidate operator->*(const struct A *, int struct A::*)}} \ 24 // expected-note {{built-in candidate operator->*(struct A *, const int struct A::*)}} \ 25 // expected-note {{built-in candidate operator->*(struct A *, int struct A::*)}}
|
cxx1y-user-defined-literals.cpp | 11 duration operator"" ns(unsigned long long); 12 duration operator"" us(unsigned long long); 13 duration operator"" ms(unsigned long long); 14 duration operator"" s(unsigned long long); 15 duration operator"" min(unsigned long long); 16 duration operator"" h(unsigned long long); 19 string operator"" s(const char*, size_t);
|
conversion-function.cpp | 4 operator bool(); 5 operator int() const; 8 return operator bool(); 12 return operator float(); // expected-error{{use of undeclared 'operator float'}} 15 static operator short(); // expected-error{{conversion function must be a non-static member function}} 18 operator int(); // expected-error{{conversion function must be a non-static member function}} 20 operator int; // expected-error{{'operator int' cannot be the name of a variable or data member}} 27 void operator bool(int, ...) const; // expected-error{{conversion function cannot have a return type}} [all...] |
default-assignment-operator.cpp | 3 class Base { // expected-error {{cannot define the implicit copy assignment operator for 'Base', because non-static reference member 'ref' can't use copy assignment operator}} \ 9 class X : Base { // // expected-error {{cannot define the implicit copy assignment operator for 'X', because non-static const member 'cint' can't use copy assignment operator}} \ 10 // expected-note{{assignment operator for 'Base' first required here}} 18 Y& operator=(const Y&); 19 Y& operator=(volatile Y&); 20 Y& operator=(const volatile Y&); 21 Y& operator=(Y&); 31 x = cx; // expected-note{{assignment operator for 'X' first required here} [all...] |
cxx11-user-defined-literals.cpp | 9 constexpr LitKind operator"" _kind(char p) { return LitKind::Char; } 10 constexpr LitKind operator"" _kind(wchar_t p) { return LitKind::WideChar; } 11 constexpr LitKind operator"" _kind(char16_t p) { return LitKind::Char16; } 12 constexpr LitKind operator"" _kind(char32_t p) { return LitKind::Char32; } 13 constexpr LitKind operator"" _kind(const char *p, size_t n) { return LitKind::CharStr; } 14 constexpr LitKind operator"" _kind(const wchar_t *p, size_t n) { return LitKind::WideStr; } 15 constexpr LitKind operator"" _kind(const char16_t *p, size_t n) { return LitKind::Char16Str; } 16 constexpr LitKind operator"" _kind(const char32_t *p, size_t n) { return LitKind::Char32Str; } 17 constexpr LitKind operator"" _kind(unsigned long long n) { return LitKind::Integer; } 18 constexpr LitKind operator"" _kind(long double n) { return LitKind::Floating; [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
TextStream.h | 51 TextStream& operator<<(bool); 52 TextStream& operator<<(int); 53 TextStream& operator<<(unsigned); 54 TextStream& operator<<(long); 55 TextStream& operator<<(unsigned long); 56 TextStream& operator<<(long long); 57 TextStream& operator<<(unsigned long long); 58 TextStream& operator<<(float); 59 TextStream& operator<<(double); 60 TextStream& operator<<(const char*) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/ |
min_allocator.h | 24 explicit operator bool() const {return ptr_ != nullptr;} 26 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 27 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 46 explicit operator bool() const {return ptr_ != nullptr;} 48 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 49 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 64 explicit operator bool() const {return ptr_ != nullptr;} 72 reference operator*() const {return *ptr_;} 73 pointer operator->() const {return ptr_;} 75 min_pointer& operator++() {++ptr_; return *this; [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/ |
min_allocator.h | 24 explicit operator bool() const {return ptr_ != nullptr;} 26 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 27 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 46 explicit operator bool() const {return ptr_ != nullptr;} 48 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 49 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 64 explicit operator bool() const {return ptr_ != nullptr;} 72 reference operator*() const {return *ptr_;} 73 pointer operator->() const {return ptr_;} 75 min_pointer& operator++() {++ptr_; return *this; [all...] |
/external/clang/test/CXX/over/over.oper/over.literal/ |
p5.cpp | 6 template<char...> void operator "" _a(); 7 template<char... C> S<C...> operator "" _a(); 10 friend int operator "" _a(const char *, size_t); 12 friend U operator "" _a(const T *, size_t); // expected-error {{parameter}} 15 friend void operator "" _b(); // expected-error {{parameter}} 18 template<char... C, int N = 0> void operator "" _b(); // expected-error {{parameter}} 19 template<char... C> void operator "" _b(int N = 0); // expected-error {{parameter}} 20 template<char, char...> void operator "" _b(); // expected-error {{parameter}} 21 template<typename T> T operator "" _b(const char *); // expected-error {{parameter}} 22 template<typename T> int operator "" _b(const T *, size_t); // expected-error {{parameter} [all...] |
p6.cpp | 3 extern "C" void operator "" _a(const char *); // expected-error {{must have C++ linkage}} 4 extern "C" template<char...> void operator "" _b(); // expected-error {{must have C++ linkage}} 7 void operator "" _c(const char *); // expected-error {{must have C++ linkage}} 8 template<char...> void operator "" _d(); // expected-error {{must have C++ linkage}} 10 void operator "" _e(const char *); // expected-error {{must have C++ linkage}} 11 template<char...> void operator "" _f(); // expected-error {{must have C++ linkage}}
|
/external/valgrind/main/massif/tests/ |
overloaded-new.cpp | 0 // operator new(unsigned) 2 // operator new[](unsigned) 3 // operator new(unsigned, std::nothrow_t const&) 4 // operator new[](unsigned, std::nothrow_t const&) 17 __attribute__((noinline)) void* operator new (std::size_t n) throw (std::bad_alloc) 22 __attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &) throw () 27 __attribute__((noinline)) void* operator new[] (std::size_t n) throw (std::bad_alloc) 32 __attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &) throw () 37 __attribute__((noinline)) void operator delete (void* p) 42 __attribute__((noinline)) void operator delete[] (void* p [all...] |
/external/lzma/CPP/Windows/ |
PropVariant.h | 29 CPropVariant& operator=(const CPropVariant &varSrc);
30 CPropVariant& operator=(const PROPVARIANT &varSrc);
31 CPropVariant& operator=(BSTR bstrSrc);
32 CPropVariant& operator=(LPCOLESTR lpszSrc);
33 CPropVariant& operator=(const char *s);
34 CPropVariant& operator=(bool bSrc);
35 CPropVariant& operator=(Byte value);
36 CPropVariant& operator=(Int16 value);
37 CPropVariant& operator=(Int32 value);
38 CPropVariant& operator=(UInt32 value); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
new | 26 bad_alloc& operator=(const bad_alloc&) noexcept; 38 void* operator new(std::size_t size); // replaceable 39 void* operator new(std::size_t size, const std::nothrow_t&) noexcept; // replaceable 40 void operator delete(void* ptr) noexcept; // replaceable 41 void operator delete(void* ptr, const std::nothrow_t&) noexcept; // replaceable 43 void* operator new[](std::size_t size); // replaceable 44 void* operator new[](std::size_t size, const std::nothrow_t&) noexcept; // replaceable 45 void operator delete[](void* ptr) noexcept; // replaceable 46 void operator delete[](void* ptr, const std::nothrow_t&) noexcept; // replaceable 48 void* operator new (std::size_t size, void* ptr) noexcept [all...] |
/external/eigen/Eigen/src/plugins/ |
ArrayCwiseBinaryOps.h | 7 operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 18 operator/(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 61 /** \returns an expression of the coefficient-wise \< operator of *this and \a other 66 * \sa all(), any(), operator>(), operator<=() 68 EIGEN_MAKE_CWISE_BINARY_OP(operator<,std::less) 70 /** \returns an expression of the coefficient-wise \<= operator of *this and \a other 75 * \sa all(), any(), operator>=(), operator<() 77 EIGEN_MAKE_CWISE_BINARY_OP(operator<=,std::less_equal [all...] |
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/ |
p2.cpp | 8 Const& operator=(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be const}} 13 Volatile& operator=(volatile Volatile&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be volatile}} 17 AssignmentRet1&& operator=(AssignmentRet1&&) = default; // expected-error {{explicitly-defaulted move assignment operator must return 'move::AssignmentRet1 &'}} 21 const AssignmentRet2& operator=(AssignmentRet2&&) = default; // expected-error {{explicitly-defaulted move assignment operator must return 'move::AssignmentRet2 &'}} 25 ConstAssignment& operator=(ConstAssignment&&) const = default; // expected-error {{an explicitly-defaulted move assignment operator may not have 'const', 'constexpr' or 'volatile' qualifiers} [all...] |