2014-09-18 20:53:13 +08:00
|
|
|
//===--- TodoCommentCheck.h - clang-tidy ------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H
|
|
|
|
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H
|
|
|
|
|
|
|
|
#include "../ClangTidy.h"
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
namespace tidy {
|
2015-03-05 21:46:14 +08:00
|
|
|
namespace google {
|
2014-09-18 20:53:13 +08:00
|
|
|
namespace readability {
|
|
|
|
|
2015-08-28 02:01:58 +08:00
|
|
|
/// Finds TODO comments without a username or bug number.
|
2014-09-18 20:53:13 +08:00
|
|
|
///
|
2015-08-28 02:01:58 +08:00
|
|
|
/// Corresponding cpplint.py check: 'readability/todo'
|
2014-09-18 20:53:13 +08:00
|
|
|
class TodoCommentCheck : public ClangTidyCheck {
|
|
|
|
public:
|
2014-09-19 02:59:50 +08:00
|
|
|
TodoCommentCheck(StringRef Name, ClangTidyContext *Context);
|
2014-09-18 20:53:13 +08:00
|
|
|
void registerPPCallbacks(CompilerInstance &Compiler) override;
|
2014-09-19 02:59:50 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
class TodoCommentHandler;
|
|
|
|
std::unique_ptr<TodoCommentHandler> Handler;
|
2014-09-18 20:53:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace readability
|
2015-03-05 21:46:14 +08:00
|
|
|
} // namespace google
|
2014-09-18 20:53:13 +08:00
|
|
|
} // namespace tidy
|
|
|
|
} // namespace clang
|
|
|
|
|
|
|
|
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_TODOCOMMENTCHECK_H
|