Bump minimum toolchain version
[llvm-project.git] / clang-tools-extra / CMakeLists.txt
blob285e5529e6fc682c724a165eead7834134f723b2
1 include(CMakeDependentOption)
2 include(GNUInstallDirs)
4 option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
5   "Include static analyzer checks in clang-tidy" ON)
7 add_subdirectory(clang-apply-replacements)
8 add_subdirectory(clang-reorder-fields)
9 add_subdirectory(modularize)
10 add_subdirectory(clang-tidy)
12 add_subdirectory(clang-change-namespace)
13 add_subdirectory(clang-doc)
14 add_subdirectory(clang-include-fixer)
15 add_subdirectory(clang-move)
16 add_subdirectory(clang-query)
17 add_subdirectory(pp-trace)
18 add_subdirectory(pseudo)
19 add_subdirectory(tool-template)
21 # Add the common testsuite after all the tools.
22 if(CLANG_INCLUDE_TESTS)
23 add_subdirectory(test)
24 add_subdirectory(unittests)
25 endif()
27 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
28   ${LLVM_INCLUDE_DOCS})
29 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
30   add_subdirectory(docs)
31 endif()
33 # clangd has its own CMake tree. It requires threads.
34 CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
35                        "LLVM_ENABLE_THREADS" OFF)
36 if (CLANG_ENABLE_CLANGD)
37   add_subdirectory(clangd)
38 endif()