forked from OSchip/llvm-project
20 lines
395 B
C++
20 lines
395 B
C++
// RUN: %python %S/check_clang_tidy.py %s modernize-use-override %t -- -std=c++98
|
|
|
|
struct Base {
|
|
virtual ~Base() {}
|
|
virtual void a();
|
|
virtual void b();
|
|
};
|
|
|
|
struct SimpleCases : public Base {
|
|
public:
|
|
virtual ~SimpleCases();
|
|
// CHECK-FIXES: {{^}} virtual ~SimpleCases();
|
|
|
|
void a();
|
|
// CHECK-FIXES: {{^}} void a();
|
|
|
|
virtual void b();
|
|
// CHECK-FIXES: {{^}} virtual void b();
|
|
};
|