summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-10-26 01:41:14 +0000
committerAlexander Kornienko <alexfh@google.com>2014-10-26 01:41:14 +0000
commit2192a8e5193716613bb9d64090a8843f7e5ca7fb (patch)
tree9d697a594076c9629ae0f9b89a4703317aab77b0 /clang-tools-extra/clang-tidy/tool
parentf0ba6ce309d9ab412982e71cda9b3981e25625fd (diff)
downloadbcm5719-llvm-2192a8e5193716613bb9d64090a8843f7e5ca7fb.tar.gz
bcm5719-llvm-2192a8e5193716613bb9d64090a8843f7e5ca7fb.zip
[clang-tidy] Bring order to check registration.
Summary: Register readability checks in a separate module. Renamed the checks and test file names accordingly. Reviewers: djasper, klimek Reviewed By: klimek Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5936 llvm-svn: 220631
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool')
-rw-r--r--clang-tools-extra/clang-tidy/tool/CMakeLists.txt1
-rw-r--r--clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
index a4f20854f7f..a20dcb714bd 100644
--- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
@@ -12,6 +12,7 @@ target_link_libraries(clang-tidy
clangTidyGoogleModule
clangTidyLLVMModule
clangTidyMiscModule
+ clangTidyReadabilityModule
clangTooling
)
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index 72d841e3f63..01de2e0902d 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -302,6 +302,10 @@ static int GoogleModuleAnchorDestination = GoogleModuleAnchorSource;
extern volatile int MiscModuleAnchorSource;
static int MiscModuleAnchorDestination = MiscModuleAnchorSource;
+// This anchor is used to force the linker to link the ReadabilityModule.
+extern volatile int ReadabilityModuleAnchorSource;
+static int ReadabilityModuleAnchorDestination = ReadabilityModuleAnchorSource;
+
} // namespace tidy
} // namespace clang
OpenPOWER on IntegriCloud