[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / clang-tools-extra / CMakeLists.txt
blob2e73b6ba81d2eae76efb46cb64677996e4eee291
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)
23 endif()
25 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
26   ${LLVM_INCLUDE_DOCS})
27 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
28   add_subdirectory(docs)
29 endif()
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)
36 endif()