1// RUN: %check_clang_tidy %s modernize-use-override %t -- \
2// RUN: -config="{CheckOptions: {modernize-use-override.IgnoreDestructors: true}}"
3
4struct Base {
5 virtual ~Base();
6 virtual void f();
7};
8
9struct Simple : public Base {
10 virtual ~Simple();
11 // CHECK-MESSAGES-NOT: warning:
12 virtual void f();
13 // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: prefer using
14 // CHECK-FIXES: {{^}} void f() override;
15};
16

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-no-destructors.cpp