From 6be414da260ff081acd9ed5e5cd9932994c3397c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 18 Sep 2014 12:53:13 +0000 Subject: [clang-tidy] Add a checker that warns on TODO comments without username. It also suggests a fix-it, taking the name from $USER. This will be made configurable eventually. Differential Revision: http://reviews.llvm.org/D5393 llvm-svn: 218049 --- clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp') diff --git a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp index 34c17bbf5cf..11fa14faeeb 100644 --- a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp @@ -18,6 +18,7 @@ #include "NamedParameterCheck.h" #include "OverloadedUnaryAndCheck.h" #include "StringReferenceMemberCheck.h" +#include "TodoCommentCheck.h" #include "UnnamedNamespaceInHeaderCheck.h" #include "UsingNamespaceDirectiveCheck.h" @@ -49,6 +50,8 @@ public: "google-readability-casting"); CheckFactories.registerCheck( "google-readability-function"); + CheckFactories.registerCheck( + "google-readability-todo"); } }; -- cgit v1.2.3