blob: 57ba0ef3d552a6f126b36b0142b8dffc576dc0b6 [file] [log] [blame]
Daniel Jasper9c6df882015-07-20 01:06:44 +00001//===--- UnusedParametersCheck.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_UNUSED_PARAMETERS_H
11#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_UNUSED_PARAMETERS_H
12
13#include "../ClangTidy.h"
14
15namespace clang {
16namespace tidy {
17
18/// \brief Finds unused parameters and fixes them, so that -Wunused-parameter
19/// can be turned on.
20class UnusedParametersCheck : public ClangTidyCheck {
21public:
22 UnusedParametersCheck(StringRef Name, ClangTidyContext *Context)
23 : ClangTidyCheck(Name, Context) {}
24 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
25 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
26};
27
28} // namespace tidy
29} // namespace clang
30
31#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_UNUSED_PARAMETERS_H
32