blob: 0f911771daa7daf1885e21f91ae08f666e24612a [file] [log] [blame]
Daniel Jasper2378ebd2014-05-16 09:30:09 +00001//===--- 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
15namespace clang {
16namespace tidy {
17
18/// \brief Use C++11's 'override' and remove 'virtual' where applicable.
19class UseOverride : public ClangTidyCheck {
20public:
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