set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Support ) add_clang_unittest(ToolingTests CommentHandlerTest.cpp CompilationDatabaseTest.cpp LookupTest.cpp ToolingTest.cpp RecursiveASTVisitorTest.cpp RecursiveASTVisitorTestCallVisitor.cpp RecursiveASTVisitorTestDeclVisitor.cpp RecursiveASTVisitorTestExprVisitor.cpp RecursiveASTVisitorTestTypeLocVisitor.cpp RefactoringTest.cpp RewriterTest.cpp RefactoringCallbacksTest.cpp ReplacementsYamlTest.cpp ) target_link_libraries(ToolingTests clangAST clangASTMatchers clangBasic clangFrontend clangLex clangRewrite clangTooling clangToolingCore )