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/llvm/LLVMTidyModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp') diff --git a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp index 1eb82c58f59..73add5e8f5a 100644 --- a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp @@ -12,7 +12,7 @@ #include "../ClangTidyModuleRegistry.h" #include "HeaderGuardCheck.h" #include "IncludeOrderCheck.h" -#include "NamespaceCommentCheck.h" +#include "../readability/NamespaceCommentCheck.h" #include "TwineLocalCheck.h" namespace clang { @@ -23,7 +23,7 @@ public: void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { CheckFactories.registerCheck("llvm-header-guard"); CheckFactories.registerCheck("llvm-include-order"); - CheckFactories.registerCheck( + CheckFactories.registerCheck( "llvm-namespace-comment"); CheckFactories.registerCheck("llvm-twine-local"); } -- cgit v1.2.3