blob: f6947096626058f59efe611fa6882a1b25f65160 [file] [log] [blame]
Benjamin Kramer6be414d2014-09-18 12:53:13 +00001//===--- TodoCommentCheck.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_GOOGLE_TODOCOMMENTCHECK_H
11#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H
12
13#include "../ClangTidy.h"
14
15namespace clang {
16namespace tidy {
17namespace readability {
18
19/// \brief Finds TODO comments without a username or bug number.
20///
21/// Corresponding cpplint.py check: readability/todo
22class TodoCommentCheck : public ClangTidyCheck {
23public:
24 TodoCommentCheck(StringRef Name, ClangTidyContext *Context)
25 : ClangTidyCheck(Name, Context) {}
26 void registerPPCallbacks(CompilerInstance &Compiler) override;
27};
28
29} // namespace readability
30} // namespace tidy
31} // namespace clang
32
33#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H