blob: 10e84a7be2eacbddcea93c43ad1122819f367f82 [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:
Hans Wennborgdfd8c742014-09-18 18:59:50 +000024 TodoCommentCheck(StringRef Name, ClangTidyContext *Context);
25 ~TodoCommentCheck();
Benjamin Kramer6be414d2014-09-18 12:53:13 +000026 void registerPPCallbacks(CompilerInstance &Compiler) override;
Hans Wennborgdfd8c742014-09-18 18:59:50 +000027
28private:
29 class TodoCommentHandler;
30 std::unique_ptr<TodoCommentHandler> Handler;
Benjamin Kramer6be414d2014-09-18 12:53:13 +000031};
32
33} // namespace readability
34} // namespace tidy
35} // namespace clang
36
37#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H