From 33fc3db9a16f8174bb0fcabc5b323c1f8b48cf4c Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 22 Sep 2014 10:41:39 +0000 Subject: Add NamespaceCommentCheck to the Google module. Summary: This uses a bit hacky way to set the defaults for the spaces before comments, but it's also one of the simplest ways. Fixed a bug with how the SpacesBeforeComments option was used. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5410 llvm-svn: 218240 --- 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 11fa14faeeb..b839fd0e55e 100644 --- a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp @@ -21,6 +21,7 @@ #include "TodoCommentCheck.h" #include "UnnamedNamespaceInHeaderCheck.h" #include "UsingNamespaceDirectiveCheck.h" +#include "../readability/NamespaceCommentCheck.h" using namespace clang::ast_matchers; @@ -52,6 +53,8 @@ public: "google-readability-function"); CheckFactories.registerCheck( "google-readability-todo"); + CheckFactories.registerCheck( + "google-readability-namespace-comments"); } }; -- cgit v1.2.3