• Home
  • Raw
  • Download

Lines Matching +full:overloaded +full:- +full:virtual

1 // RUN: %clang_cc1 %s -verify -fexceptions
3 …void f() __attribute__((deprecated)); // expected-note 2 {{'f' has been explicitly marked deprecat…
7 …int b __attribute__((deprecated)); // expected-note 2 {{'b' has been explicitly marked deprecated …
12 f(); // expected-warning{{'f' is deprecated}} in g()
13 a->f(); // expected-warning{{'f' is deprecated}} in g()
15 (void)b; // expected-warning{{'b' is deprecated}} in g()
16 (void)a->b; // expected-warning{{'b' is deprecated}} in g()
22 a->f(); in h()
25 (void)a->b; in h()
29virtual void f() __attribute__((deprecated)); // expected-note 6 {{'f' has been explicitly marked …
34 f(); // expected-warning{{'f' is deprecated}} in g()
35 B::f(); // expected-warning{{'f' is deprecated}} in g()
39 virtual void f();
46 B::f(); // expected-warning{{'f' is deprecated}} in g()
50 b->f(); // expected-warning{{'f' is deprecated}} in f()
51 b->B::f(); // expected-warning{{'f' is deprecated}} in f()
53 c->f(); in f()
54 c->C::f(); in f()
55 c->B::f(); // expected-warning{{'f' is deprecated}} in f()
59 virtual void f() __attribute__((deprecated));
60 virtual void f(int) __attribute__((deprecated));
61 virtual void f(int, int) __attribute__((deprecated));
64 void D::f() { } // expected-note{{'f' has been explicitly marked deprecated here}} in f()
65 void D::f(int v) { } // expected-note{{'f' has been explicitly marked deprecated here}} in f()
66 void D::f(int v1, int v2) { } // expected-note{{'f' has been explicitly marked deprecated here}} in f()
69 d->f(); // expected-warning{{'f' is deprecated}} in f()
70 d->f(42); // expected-warning{{'f' is deprecated}} in f()
71 d->f(42, 24); // expected-warning{{'f' is deprecated}} in f()
75 // Overloaded namespace members.
77 …void foo(int) __attribute__((deprecated)); // expected-note {{'foo' has been explicitly marked dep…
78 void test1() { foo(10); } // expected-warning {{deprecated}} in test1()
79 …void foo(short) __attribute__((deprecated)); // expected-note {{'foo' has been explicitly marked d…
80 void test2(short s) { foo(s); } // expected-warning {{deprecated}} in test2()
84 …friend void foo(A*) __attribute__((deprecated)); // expected-note {{'foo' has been explicitly mark…
86 void test4(A *a) { foo(a); } // expected-warning {{deprecated}} in test4()
90 …void foo(const Foo &f) __attribute__((deprecated)); // expected-note {{'foo' has been explicitly m…
93 foo(ns::Foo()); // expected-warning {{deprecated}} in test5()
97 // Overloaded class members.
100 …void foo(int) __attribute__((deprecated)); // expected-note 2 {{'foo' has been explicitly marked d…
102 …static void bar(int) __attribute__((deprecated)); // expected-note 3 {{'bar' has been explicitly m…
109 a.foo(i); // expected-warning {{deprecated}} in test1()
111 a.bar(i); // expected-warning {{deprecated}} in test1()
113 A::bar(i); // expected-warning {{deprecated}} in test1()
118 foo(i); // expected-warning {{deprecated}} in test2()
120 bar(i); // expected-warning {{deprecated}} in test2()
125 // Overloaded operators.
129 …void operator*(int) __attribute__((deprecated)); // expected-note {{'operator*' has been explicitl…
130 void operator-(const A &) const;
133 …void operator+(const A &, int) __attribute__((deprecated)); // expected-note {{'operator+' has bee…
134 …void operator-(const A &, int) __attribute__((deprecated)); // expected-note {{'operator-' has bee…
139 a + 1; // expected-warning {{deprecated}} in test()
140 a - b; in test()
141 a - 1; // expected-warning {{deprecated}} in test()
143 a * 1; // expected-warning {{deprecated}} in test()
147 // Overloaded operator call.
152 …operator intfn() __attribute__((deprecated)); // expected-note {{'operator void (*)(int)' has been…
154 …void operator ()(A &) __attribute__((deprecated)); // expected-note {{'operator()' has been explic…
160 a(1); // expected-warning {{deprecated}} in test()
165 a(b); // expected-warning {{deprecated}} in test()
172 …operator int() __attribute__((deprecated)); // expected-note 3 {{'operator int' has been explicitl…
176 int i = a; // expected-warning {{deprecated}} in test1()
185 foo(a); // expected-warning {{deprecated}} in test2()
194 myInt(a), // expected-warning {{deprecated}} in B()
202 …enum __attribute__((deprecated)) A { // expected-note {{'A' has been explicitly marked deprecated …
203 a0 // expected-note {{'a0' has been explicitly marked deprecated here}}
206 A x; // expected-warning {{'A' is deprecated}} in testA()
207 x = a0; // expected-warning {{'a0' is deprecated}} in testA()
211 …b0 __attribute__((deprecated)), // expected-note {{'b0' has been explicitly marked deprecated here…
216 x = b0; // expected-warning {{'b0' is deprecated}} in testB()
221 …enum __attribute__((deprecated)) Enum { // expected-note {{'Enum' has been explicitly marked depre…
222 c0 // expected-note {{'c0' has been explicitly marked deprecated here}}
226 C<int>::Enum x; // expected-warning {{'Enum' is deprecated}} in testC()
227 x = C<int>::c0; // expected-warning {{'c0' is deprecated}} in testC()
233 …d1 __attribute__((deprecated)), // expected-note {{'d1' has been explicitly marked deprecated here…
239 x = D<int>::d1; // expected-warning {{'d1' is deprecated}} in testD()
245 …void* operator new(typeof(sizeof(void*))) __attribute__((deprecated)); // expected-note{{'operato…
246 …void operator delete(void *) __attribute__((deprecated)); // expected-note{{'operator delete' has…
250 …X *x = new X; // expected-warning{{'operator new' is deprecated}} expected-warning{{'operator del… in test()
256 } TDS __attribute__((deprecated)); // expected-note {{'TDS' has been explicitly marked deprecated h…
257 TDS tds; // expected-warning {{'TDS' is deprecated}}