summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-09-18 12:53:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-09-18 12:53:13 +0000
commit6be414da260ff081acd9ed5e5cd9932994c3397c (patch)
tree2b9ee03f86b5f570fa70ab4ae062c8b1893bbde9 /clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
parent07ccb1075ad80c36dcbdc7d594cb0b9c71074c8c (diff)
downloadbcm5719-llvm-6be414da260ff081acd9ed5e5cd9932994c3397c.tar.gz
bcm5719-llvm-6be414da260ff081acd9ed5e5cd9932994c3397c.zip
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
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<readability::NamedParameterCheck>(
"google-readability-function");
+ CheckFactories.registerCheck<readability::TodoCommentCheck>(
+ "google-readability-todo");
}
};
OpenPOWER on IntegriCloud