Lines Matching +full:overloaded +full:- +full:virtual
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
6 virtual void f(int);
10 …virtual void f(long) override; // expected-error {{'f' marked 'override' but does not override any…
18 virtual void f(int, char, int);
24 virtual void f(T) override;
29 virtual void f(int) override; // expected-error {{does not override}}
37 virtual void f(int, char, int);
42 …virtual void f(Args...) override; // expected-error {{'f' marked 'override' but does not override …
46 template struct B<int>; // expected-note {{in instantiation of template class 'Test3::B<int>' reque…
52 virtual void f() const final; // expected-note {{overridden virtual function is here}}
56 void f() const; // expected-error {{declaration of 'f' overrides a 'final' function}}
63 virtual void f();
64 virtual void h();
71 void g() override; // expected-error {{only virtual member functions can be marked 'override'}}
72 void i() final; // expected-error {{only virtual member functions can be marked 'final'}}
74 B<int> b; // no-note
80 virtual void g() override; // expected-error {{does not override}}
81 virtual void i() final;
85 …void g(T...) override; // expected-error {{only virtual member functions can be marked 'override'}}
87 void i(T...) final; // expected-error {{only virtual member functions can be marked 'final'}}
90 E<> e; // expected-note {{in instantiation of}}
97 void g() override; // expected-error {{only virtual member functions can be marked 'override'}}
98 void i() final; // expected-error {{only virtual member functions can be marked 'final'}}
101 Z<X> z; // expected-note {{in instantiation of}}
113 virtual void f();
121 // expected-error@-13 {{only virtual member functions can be marked 'override'}}
122 // expected-note@+1 {{in instantiation of}}
126 virtual void f() final;
128 // expected-error@-20 {{declaration of 'f' overrides a 'final' function}}
129 // expected-note@-3 {{here}}
130 // expected-note@+1 {{in instantiation of}}
136 virtual ~X();
137 virtual void foo(int x); // expected-note {{hidden overloaded virtual function}}
138 virtual void bar(int x); // expected-note 2 {{hidden overloaded virtual function}}
139 virtual void bar(float x); // expected-note 2 {{hidden overloaded virtual function}}
143 …id foo(int x, int y) override; // expected-error {{non-virtual member function marked 'override' h…
144 …void bar(double) override; // expected-error {{non-virtual member function marked 'override' hides…
145 …void bar(long double) final; // expected-error {{non-virtual member function marked 'final' hides …
150 …static void foo() override; // expected-error {{only virtual member functions can be marked 'overr…