blob: 57bb970575608af859315cddfc01271ada13e500 [file] [log] [blame]
Sam McCallb9de3eb2019-05-07 07:05:471include(CMakeDependentOption)
2
Chandler Carruthd9063c42013-09-04 17:35:073add_subdirectory(clang-apply-replacements)
Alexander Shaposhnikovbf3c84c2016-09-02 02:56:074add_subdirectory(clang-reorder-fields)
Chandler Carruthd9063c42013-09-04 17:35:075add_subdirectory(modularize)
Alp Toker6462e9e2014-07-14 22:15:296add_subdirectory(clang-tidy)
Alp Toker6462e9e2014-07-14 22:15:297
Nico Weber5f5a7452019-03-15 11:54:018add_subdirectory(clang-change-namespace)
Julie Hockette975a472018-03-22 23:34:469add_subdirectory(clang-doc)
Nico Weber43356f52019-03-25 14:09:1010add_subdirectory(clang-include-fixer)
Haojian Wu357ef992016-09-21 13:18:1911add_subdirectory(clang-move)
Nico Weber43356f52019-03-25 14:09:1012add_subdirectory(clang-query)
Alp Toker6462e9e2014-07-14 22:15:2913add_subdirectory(pp-trace)
Sam Panzer8e0df502012-08-24 23:29:3314add_subdirectory(tool-template)
Chandler Carruth118232f2012-08-07 08:33:0415
16# Add the common testsuite after all the tools.
Michal Gornya81de442017-08-29 05:58:0817if(CLANG_INCLUDE_TESTS)
Chandler Carruth118232f2012-08-07 08:33:0418add_subdirectory(test)
Edwin Vanec0b7be62013-04-03 15:11:0819add_subdirectory(unittests)
Alp Toker6462e9e2014-07-14 22:15:2920endif()
Alexander Kornienkoad166f52016-01-27 11:37:0821
22option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
23 ${LLVM_INCLUDE_DOCS})
24if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
25 add_subdirectory(docs)
26endif()
27
Sam McCallb9de3eb2019-05-07 07:05:4728# clangd has its own CMake tree. It requires threads.
29CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
30 "LLVM_ENABLE_THREADS" OFF)
31if (CLANG_ENABLE_CLANGD)
32 add_subdirectory(clangd)
33endif()