54 lines · plain
1create_subdirectory_options(CLANG TOOL)2 3add_clang_subdirectory(diagtool)4add_clang_subdirectory(driver)5add_clang_subdirectory(apinotes-test)6if(CLANG_ENABLE_CIR)7 add_clang_subdirectory(cir-opt)8 add_clang_subdirectory(cir-translate)9 add_clang_subdirectory(cir-lsp-server)10endif()11add_clang_subdirectory(clang-diff)12add_clang_subdirectory(clang-format)13add_clang_subdirectory(clang-fuzzer)14add_clang_subdirectory(clang-import-test)15add_clang_subdirectory(clang-linker-wrapper)16add_clang_subdirectory(clang-nvlink-wrapper)17add_clang_subdirectory(clang-offload-bundler)18add_clang_subdirectory(clang-scan-deps)19add_clang_subdirectory(clang-sycl-linker)20add_clang_subdirectory(clang-installapi)21if(HAVE_CLANG_REPL_SUPPORT)22 add_clang_subdirectory(clang-repl)23endif()24 25add_clang_subdirectory(c-index-test)26 27add_clang_subdirectory(clang-refactor)28# For MinGW/Cygwin we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.29# Without that option resulting library is too close to 2^16 DLL exports limit.30if((UNIX AND NOT CYGWIN) OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR31 ((MINGW OR CYGWIN) AND LLVM_LINK_LLVM_DYLIB))32 add_clang_subdirectory(clang-shlib)33endif()34 35if(CLANG_ENABLE_STATIC_ANALYZER)36 add_clang_subdirectory(clang-check)37 add_clang_subdirectory(clang-extdef-mapping)38 add_clang_subdirectory(scan-build)39 add_clang_subdirectory(scan-build-py)40 add_clang_subdirectory(scan-view)41endif()42 43# We support checking out the clang-tools-extra repository into the 'extra'44# subdirectory. It contains tools developed as part of the Clang/LLVM project45# on top of the Clang tooling platform. We keep them in a separate repository46# to keep the primary Clang repository small and focused.47# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.48add_llvm_external_project(clang-tools-extra extra)49 50# libclang may require clang-tidy in clang-tools-extra.51add_clang_subdirectory(libclang)52 53add_clang_subdirectory(offload-arch)54