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