Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:operator

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}} \
30 operator float(...) const; // expected-error{{conversion function cannot be variadic}}
33 operator func_type(); // expected-error{{conversion function cannot convert to a function type}}
34 operator array_type(); // expected-error{{conversion function cannot convert to an array type}}
42 operator int(); // expected-note {{previous declaration is here}}
43 operator int**(); // expected-note {{previous declaration is here}}
45 operator INT(); // expected-error{{conversion function cannot be redeclared}}
46 operator INT_PTR*(); // expected-error{{conversion function cannot be redeclared}}
54 operator A&() const; // expected-warning{{conversion function converting 'B' to its base class 'A' will never be used}}
55 operator const void() const; // expected-warning{{conversion function converting 'B' to 'const void' will never be used}}
56 operator const B(); // expected-warning{{conversion function converting 'B' to itself will never be used}}
66 operator Flop() const; // expected-note{{candidate function}}
72 operator const char *() const;
75 C::operator const char*() const { return 0; }
84 operator int(); // expected-note {{candidate function}}
89 operator char(); // expected-note {{candidate function}}
94 int i = a; // OK. calls XB::operator int();
95 char ch = a; // OK. calls Yb::operator char();
108 operator AutoPtrRef();
150 operator A<T, typename sneaky_int<T>::type>&() const; // expected-note{{candidate function}}
162 operator T
172 (&operator bool())(); // expected-error {{must use a typedef to declare a conversion to 'bool (&)()'}}
175 // would be 'operator int*'), but it's a corner case of a
177 *operator int(); // expected-error {{must use a typedef to declare a conversion to 'int *'}}
191 operator YRef(); // expected-note{{candidate function}}
231 operator auto_ptr_ref();
261 operator void*() { return ptr; }
264 operator uint8*() { return reinterpret_cast<uint8*>(ptr); }
265 operator const char*() const { return reinterpret_cast<const char*>(ptr); }
279 operator const struct X *() const;
283 operator struct X * ();
293 operator int();
301 using Derived1::operator int;
305 operator long();
313 operator int();
317 operator int();
321 using Base2::operator int;
343 operator X(void) { return X(); }
351 operator int();
354 template <typename T> operator T();
356 int x = C().operator int();
364 operator Container()
376 T& operator[](int);
377 const T& operator[](int)const;
387 operator A&();
401 operator A();
402 operator A() const;