diff options
author | Daniel Jasper <djasper@google.com> | 2013-08-04 15:56:30 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-08-04 15:56:30 +0000 |
commit | 83616dd3225ed964db7260a1ae1e755dfc6103c5 (patch) | |
tree | 959c48e86872ce5d809d706e017cc14b5ef68b4c /clang-tidy/tool/ClangTidyMain.cpp | |
parent | ec5665f76ae57ea7cd03627422e694f87031f912 (diff) |
Fix clang-tidy dependencies and bad file comment.
This addresses comments in post-commit review of r187345.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r-- | clang-tidy/tool/ClangTidyMain.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang-tidy/tool/ClangTidyMain.cpp b/clang-tidy/tool/ClangTidyMain.cpp index 59508a1b..47aefe7b 100644 --- a/clang-tidy/tool/ClangTidyMain.cpp +++ b/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 |