Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:operator

7   operator bool();
8 operator int() const;
11 return operator bool();
15 return operator float(); // expected-error{{use of undeclared 'operator float'}}
18 static operator short(); // expected-error{{conversion function must be a non-static member function}}
21 operator int(); // expected-error{{conversion function must be a non-static member function}}
23 operator int; // expected-error{{'operator int' cannot be the name of a variable or data member}}
30 void operator bool(int, ...) const; // expected-error{{conversion function cannot have a return type}} \
33 operator bool(int a = 4, int b = 6) const; // expected-error{{conversion function cannot have any parameters}}
36 operator float(...) const; // expected-error{{conversion function cannot be variadic}}
39 operator func_type(); // expected-error{{conversion function cannot convert to a function type}}
40 operator array_type(); // expected-error{{conversion function cannot convert to an array type}}
48 operator int(); // expected-note {{previous declaration is here}}
49 operator int**(); // expected-note {{previous declaration is here}}
51 operator INT(); // expected-error{{conversion function cannot be redeclared}}
52 operator INT_PTR*(); // expected-error{{conversion function cannot be redeclared}}
60 operator A&() const; // expected-warning{{conversion function converting 'B' to its base class 'A' will never be used}}
61 operator const void() const; // expected-warning{{conversion function converting 'B' to 'const void' will never be used}}
62 operator const B(); // expected-warning{{conversion function converting 'B' to itself will never be used}}
72 operator Flop() const; // expected-note{{candidate function}}
78 operator const char *() const;
81 C::operator const char*() const { return 0; }
90 operator int(); // expected-note {{candidate function}}
95 operator char(); // expected-note {{candidate function}}
100 int i = a; // OK. calls XB::operator int();
101 char ch = a; // OK. calls Yb::operator char();
114 operator AutoPtrRef();
161 operator A<T, typename sneaky_int<T>::type>&() const; // expected-note{{candidate function}}
173 operator T
183 (&operator bool())(); // expected-error {{use a typedef to declare a conversion to 'bool (&)()'}}
184 *operator int(); // expected-error {{put the complete type after 'operator'}}
186 template<typename T> (&operator T())();
206 operator YRef(); // expected-note{{candidate function}}
255 operator auto_ptr_ref();
285 operator void*() { return ptr; }
288 operator uint8*() { return reinterpret_cast<uint8*>(ptr); }
289 operator const char*() const { return reinterpret_cast<const char*>(ptr); }
303 operator const struct X *() const;
307 operator struct X * ();
317 operator int();
325 using Derived1::operator int;
329 operator long();
337 operator int();
341 operator int();
345 using Base2::operator int;
367 operator X(void) { return X(); }
375 operator int();
378 template <typename T> operator T();
380 int x = C().operator int();
388 operator Container()
400 T& operator[](int);
401 const T& operator[](int)const;
411 operator A&();
425 operator A();
426 operator A() const;
435 operator enum E { e } (); // expected-error {{'PR18234::A::E' cannot be defined in a type specifier}}
436 operator struct S { int n; } (); // expected-error {{'PR18234::A::S' cannot be defined in a type specifier}}