set(LLVM_LINK_COMPONENTS FrontendOpenMP Support ) add_clang_library(clangTidyDarwinModule AvoidSpinlockCheck.cpp DarwinTidyModule.cpp DispatchOnceNonstaticCheck.cpp LINK_LIBS clangTidy clangTidyUtils DEPENDS omp_gen ) clang_target_link_libraries(clangTidyDarwinModule PRIVATE clangAnalysis clangAST clangASTMatchers clangBasic clangLex )