Define a diagnostic group for missing variadic macro arguments (#116855)
[llvm-project.git] / clang / tools / CMakeLists.txt
blob98c018e96848dfec34f455529e322c680c237eee
1 create_subdirectory_options(CLANG TOOL)
3 add_clang_subdirectory(diagtool)
4 add_clang_subdirectory(driver)
5 add_clang_subdirectory(apinotes-test)
6 add_clang_subdirectory(clang-diff)
7 add_clang_subdirectory(clang-format)
8 add_clang_subdirectory(clang-fuzzer)
9 add_clang_subdirectory(clang-import-test)
10 add_clang_subdirectory(clang-linker-wrapper)
11 add_clang_subdirectory(clang-nvlink-wrapper)
12 add_clang_subdirectory(clang-offload-packager)
13 add_clang_subdirectory(clang-offload-bundler)
14 add_clang_subdirectory(clang-scan-deps)
15 add_clang_subdirectory(clang-sycl-linker)
16 add_clang_subdirectory(clang-installapi)
17 if(HAVE_CLANG_REPL_SUPPORT)
18   add_clang_subdirectory(clang-repl)
19 endif()
21 add_clang_subdirectory(c-index-test)
23 add_clang_subdirectory(clang-refactor)
24 # For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
25 # Without that option resulting library is too close to 2^16 DLL exports limit.
26 if(UNIX OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR (MINGW AND LLVM_LINK_LLVM_DYLIB))
27   add_clang_subdirectory(clang-shlib)
28 endif()
30 if(CLANG_ENABLE_ARCMT)
31   add_clang_subdirectory(arcmt-test)
32   add_clang_subdirectory(c-arcmt-test)
33 endif()
35 if(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)
41 endif()
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 project
45 # on top of the Clang tooling platform. We keep them in a separate repository
46 # to keep the primary Clang repository small and focused.
47 # It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
48 add_llvm_external_project(clang-tools-extra extra)
50 # libclang may require clang-tidy in clang-tools-extra.
51 add_clang_subdirectory(libclang)
53 add_clang_subdirectory(amdgpu-arch)
54 add_clang_subdirectory(nvptx-arch)