diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-10-15 10:51:57 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-10-15 10:51:57 +0000 |
commit | 35ddae4a9b22da8fd43511a2e5f0836230776b50 (patch) | |
tree | 0ee137958546266fa7d4b35a73cdbd399174ef95 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | |
parent | 14c5ec51945be51c55c58cc4d2a1e4f1cfb56533 (diff) | |
download | llvm-35ddae4a9b22da8fd43511a2e5f0836230776b50.zip llvm-35ddae4a9b22da8fd43511a2e5f0836230776b50.tar.gz llvm-35ddae4a9b22da8fd43511a2e5f0836230776b50.tar.bz2 |
[clang-tidy] Move some of the misc checks to readability/
Summary:
Some of the misc checks belong to readability/. I'm moving them there
without changing check names for now. As the next step, I want to register some
of these checks in the google and llvm modules with suitable settings (e.g.
BracesAroundStatementsCheck). I'm not sure if we want to create a "readability"
module, probably not.
Reviewers: djasper
Reviewed By: djasper
Subscribers: curdeius, cfe-commits
Differential Revision: http://reviews.llvm.org/D5792
llvm-svn: 219786
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp index c24897d..c2220b6 100644 --- a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp @@ -10,11 +10,13 @@ #include "../ClangTidy.h" #include "../ClangTidyModule.h" #include "../ClangTidyModuleRegistry.h" +// FIXME: Figure out if we want to create a separate module for readability +// checks instead of registering them here. +#include "../readability/BracesAroundStatementsCheck.h" +#include "../readability/FunctionSize.h" +#include "../readability/RedundantSmartptrGet.h" #include "ArgumentCommentCheck.h" #include "BoolPointerImplicitConversion.h" -#include "BracesAroundStatementsCheck.h" -#include "FunctionSize.h" -#include "RedundantSmartptrGet.h" #include "SwappedArgumentsCheck.h" #include "UndelegatedConstructor.h" #include "UnusedRAII.h" @@ -29,10 +31,11 @@ public: CheckFactories.registerCheck<ArgumentCommentCheck>("misc-argument-comment"); CheckFactories.registerCheck<BoolPointerImplicitConversion>( "misc-bool-pointer-implicit-conversion"); - CheckFactories.registerCheck<BracesAroundStatementsCheck>( + CheckFactories.registerCheck<readability::BracesAroundStatementsCheck>( "misc-braces-around-statements"); - CheckFactories.registerCheck<FunctionSizeCheck>("misc-function-size"); - CheckFactories.registerCheck<RedundantSmartptrGet>( + CheckFactories.registerCheck<readability::FunctionSizeCheck>( + "misc-function-size"); + CheckFactories.registerCheck<readability::RedundantSmartptrGet>( "misc-redundant-smartptr-get"); CheckFactories.registerCheck<SwappedArgumentsCheck>( "misc-swapped-arguments"); |