Daniel Jasper | 2378ebd | 2014-05-16 09:30:09 +0000 | [diff] [blame] | 1 | //===--- UseOverride.h - clang-tidy -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_USE_OVERRIDE_H |
| 11 | #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_USE_OVERRIDE_H |
| 12 | |
| 13 | #include "../ClangTidy.h" |
| 14 | |
| 15 | namespace clang { |
| 16 | namespace tidy { |
| 17 | |
| 18 | /// \brief Use C++11's 'override' and remove 'virtual' where applicable. |
| 19 | class UseOverride : public ClangTidyCheck { |
| 20 | public: |
| 21 | void registerMatchers(ast_matchers::MatchFinder *Finder) override; |
| 22 | void check(const ast_matchers::MatchFinder::MatchResult &Result) override; |
| 23 | }; |
| 24 | |
| 25 | } // namespace tidy |
| 26 | } // namespace clang |
| 27 | |
| 28 | #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_USE_OVERRIDE_H |
| 29 | |