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'}}
16 operator int(); // expected-error{{conversion function must be a non-static member function}}
18 operator int; // expected-error{{'operator int' cannot be the name of a variable or data member}}
25 void operator bool(int, ...) const; // expected-error{{conversion function cannot have a return type}} \
28 operator float(...) const; // expected-error{{conversion function cannot be variadic}}
31 operator func_type(); // expected-error{{conversion function cannot convert to a function type}}
32 operator array_type(); // expected-error{{conversion function cannot convert to an array type}}
40 operator int(); // expected-note {{previous declaration is here}}
41 operator int**(); // expected-note {{previous declaration is here}}
43 operator INT(); // expected-error{{conversion function cannot be redeclared}}
44 operator INT_PTR*(); // expected-error{{conversion function cannot be redeclared}}
52 operator A&() const; // expected-warning{{conversion function converting 'B' to its base class 'A' will never be used}}
53 operator const void() const; // expected-warning{{conversion function converting 'B' to 'const void' will never be used}}
54 operator const B(); // expected-warning{{conversion function converting 'B' to itself will never be used}}
64 operator Flop() const; // expected-note{{candidate function}}
70 operator const char *() const;
73 C::operator const char*() const { return 0; }
82 operator int(); // expected-note {{candidate function}}
87 operator char(); // expected-note {{candidate function}}
92 int i = a; // OK. calls XB::operator int();
93 char ch = a; // OK. calls Yb::operator char();
106 operator AutoPtrRef();
148 operator A<T, typename sneaky_int<T>::type>&() const; // expected-note{{candidate function}}
160 operator T
170 (&operator bool())(); // expected-error {{must use a typedef to declare a conversion to 'bool (&)()'}}
173 // would be 'operator int*'), but it's a corner case of a
175 *operator int(); // expected-error {{must use a typedef to declare a conversion to 'int *'}}
189 operator YRef(); // expected-note{{candidate function}}
229 operator auto_ptr_ref();
259 operator void*() { return ptr; }
262 operator uint8*() { return reinterpret_cast<uint8*>(ptr); }
263 operator const char*() const { return reinterpret_cast<const char*>(ptr); }
277 operator const struct X *() const;
281 operator struct X * ();
291 operator int();
299 using Derived1::operator int;
303 operator long();
311 operator int();
315 operator int();
319 using Base2::operator int;
341 operator X(void) { return X(); }
349 operator int();
352 template <typename T> operator T();
354 int x = C().operator int();
362 operator Container()
374 T& operator[](int);
375 const T& operator[](int)const;
385 operator A&();
399 operator A();
400 operator A() const;