1 include(CMakeDependentOption)
3 add_subdirectory(clang-apply-replacements)
4 add_subdirectory(clang-reorder-fields)
5 add_subdirectory(modularize)
6 add_subdirectory(clang-tidy)
8 add_subdirectory(clang-change-namespace)
9 add_subdirectory(clang-doc)
10 add_subdirectory(clang-include-fixer)
11 add_subdirectory(clang-move)
12 add_subdirectory(clang-query)
13 add_subdirectory(pp-trace)
14 add_subdirectory(tool-template)
16 # Add the common testsuite after all the tools.
17 if(CLANG_INCLUDE_TESTS)
18 add_subdirectory(test)
19 add_subdirectory(unittests)
22 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
24 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
25 add_subdirectory(docs)
28 # clangd has its own CMake tree. It requires threads.
29 CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
30 "LLVM_ENABLE_THREADS" OFF)
31 if (CLANG_ENABLE_CLANGD)
32 add_subdirectory(clangd)