Benjamin Kramer | 6be414d | 2014-09-18 12:53:13 +0000 | [diff] [blame] | 1 | //===--- 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 | |
| 15 | namespace clang { |
| 16 | namespace tidy { |
| 17 | namespace readability { |
| 18 | |
| 19 | /// \brief Finds TODO comments without a username or bug number. |
| 20 | /// |
| 21 | /// Corresponding cpplint.py check: readability/todo |
| 22 | class TodoCommentCheck : public ClangTidyCheck { |
| 23 | public: |
| 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 |