summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-08-04 15:56:30 +0000
committerDaniel Jasper <djasper@google.com>2013-08-04 15:56:30 +0000
commit89bbab09dd4665f9b3009b47c187c38ea5bac340 (patch)
tree834a5101dd1011ed4abfc38ebc28ce8592716236 /clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
parent5bc180c14f4ec3e5d604b750befd5b3ed16fbae8 (diff)
downloadbcm5719-llvm-89bbab09dd4665f9b3009b47c187c38ea5bac340.tar.gz
bcm5719-llvm-89bbab09dd4665f9b3009b47c187c38ea5bac340.zip
Fix clang-tidy dependencies and bad file comment.
This addresses comments in post-commit review of r187345. llvm-svn: 187707
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index 59508a1bd08..47aefe7be0e 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -52,3 +52,17 @@ int main(int argc, const char **argv) {
return 0;
}
+
+namespace clang {
+namespace tidy {
+
+// This anchor is used to force the linker to link the LLVMModule.
+extern volatile int LLVMModuleAnchorSource;
+static int LLVMModuleAnchorDestination = LLVMModuleAnchorSource;
+
+// This anchor is used to force the linker to link the GoogleModule.
+extern volatile int GoogleModuleAnchorSource;
+static int GoogleModuleAnchorDestination = GoogleModuleAnchorSource;
+
+} // namespace tidy
+} // namespace clang
OpenPOWER on IntegriCloud