This addresses comments in post-commit review of r187345.
llvm-svn: 187707
clangTooling
clangBasic
clangRewriteFrontend
- clangTidyLLVMModule
- clangTidyGoogleModule
)
add_subdirectory(tool)
Rewrite.overwriteChangedFiles();
}
-// 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
-##===- tools/extra/clang-tidy/Makefile ----sssss------------*- Makefile -*-===##
+##===- tools/extra/clang-tidy/Makefile ---------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
)
target_link_libraries(clang-tidy
clangTidy
+ clangTidyLLVMModule
+ clangTidyGoogleModule
)
install(TARGETS clang-tidy
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
gtest
gtest_main
clangTidy
+ clangTidyLLVMModule
+ clangTidyGoogleModule
clangTooling
clangBasic
clangASTMatchers