Lines Matching defs:Private
18 struct Public {}; struct Protected {}; struct Private {};
22 typedef int type; // expected-note {{declared private here}}
26 A::type foo() { } // expected-error {{'type' is a private member}}
40 private:
41 operator Private (); // expected-note {{declared private here}}
42 A(Private); // expected-note {{declared private here}}
49 Private priv = a; // expected-error {{'operator Private' is a private member}}
52 A apriv = priv; // expected-error {{private constructor}}
71 private:
99 private: typedef Green nature;
111 private: typedef int type;
126 enum Enum { E0, E1, E2 }; // expected-note 4 {{declared private here}}
134 template <A::Enum en> void foo() {} // expected-error {{'Enum' is a private member of 'test5::A'}}
135 template <A::Enum en> class bar {}; // expected-error {{'Enum' is a private member of 'test5::A'}}
138 template <A::Enum en> void foo() {} // expected-error {{'Enum' is a private member of 'test5::A'}}
139 template <A::Enum en> class bar {}; // expected-error {{'Enum' is a private member of 'test5::A'}}
147 private: class private_inner {}; // expected-note {{declared private here}}
153 private_inner c; // expected-error {{ 'private_inner' is a private member of 'test6::A'}}
176 operator UnspecifiedBoolType() const; // expected-note {{implicitly declared private here}}
180 if (a) return; // expected-error {{'operator void *(class test8::A::*)(void) const' is a private member of 'test8::A'}}
186 operator char*() const; // expected-note {{implicitly declared private here}}
190 delete a; // expected-error {{'operator char *' is a private member of 'test9::A'}}