1 | // RUN: %check_clang_tidy -std=c++98 %s modernize-use-override %t |
---|---|
2 | |
3 | struct Base { |
4 | virtual ~Base() {} |
5 | virtual void a(); |
6 | virtual void b(); |
7 | }; |
8 | |
9 | struct SimpleCases : public Base { |
10 | public: |
11 | virtual ~SimpleCases(); |
12 | // CHECK-FIXES: {{^}} virtual ~SimpleCases(); |
13 | |
14 | void a(); |
15 | // CHECK-FIXES: {{^}} void a(); |
16 | |
17 | virtual void b(); |
18 | // CHECK-FIXES: {{^}} virtual void b(); |
19 | }; |
20 |