diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-08-31 13:17:43 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-08-31 13:17:43 +0000 |
commit | 0ed6c478a4699854d68718eda35d14d900fb8199 (patch) | |
tree | 331ab86afa73111be436cd571de2c656e69231c2 /clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp | |
parent | f3ded811b2f865c804617d16fba981f731db3e47 (diff) | |
download | bcm5719-llvm-0ed6c478a4699854d68718eda35d14d900fb8199.tar.gz bcm5719-llvm-0ed6c478a4699854d68718eda35d14d900fb8199.zip |
[clang-tidy] Move misc-use-override and readability-shrink-to-fit to "modernize/"
These checks are focusing on migrating the code from C++98/03 to C++11, so they
belong to the modernize module.
llvm-svn: 246437
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp new file mode 100644 index 00000000000..c061e8a3d7c --- /dev/null +++ b/clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp @@ -0,0 +1,19 @@ +// 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(); +}; |