[RISCV] Bump Zfbfmin, Zvfbfmin, and Zvfbfwma to 1.0. (#78021)
[llvm-project.git] / clang-tools-extra / CMakeLists.txt
blob6a3f741721ee6c748b3a47ef930b11fcb1d0c390
1 include(CMakeDependentOption)
2 include(GNUInstallDirs)
4 option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
5   "Include static analyzer checks in clang-tidy" ON)
7 if(CLANG_INCLUDE_TESTS)
8   umbrella_lit_testsuite_begin(check-clang-tools)
10   option(CLANG_TOOLS_TEST_USE_VG "Run Clang tools' tests under Valgrind" OFF)
11   if(CLANG_TOOLS_TEST_USE_VG)
12     set_property(GLOBAL APPEND PROPERTY LLVM_CLANG_TOOLS_LIT_EXTRA_ARGS "--vg")
13   endif()
14 endif()
16 add_subdirectory(clang-apply-replacements)
17 add_subdirectory(clang-reorder-fields)
18 add_subdirectory(modularize)
19 add_subdirectory(clang-tidy)
21 add_subdirectory(clang-change-namespace)
22 add_subdirectory(clang-doc)
23 add_subdirectory(clang-include-fixer)
24 add_subdirectory(clang-move)
25 add_subdirectory(clang-query)
26 add_subdirectory(include-cleaner)
27 add_subdirectory(pp-trace)
28 add_subdirectory(pseudo)
29 add_subdirectory(tool-template)
31 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
32   ${LLVM_INCLUDE_DOCS})
33 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
34   add_subdirectory(docs)
35 endif()
37 # clangd has its own CMake tree. It requires threads.
38 CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
39                        "LLVM_ENABLE_THREADS" OFF)
40 if (CLANG_ENABLE_CLANGD)
41   add_subdirectory(clangd)
42 endif()
44 # Add the common testsuite after all the tools.
45 if(CLANG_INCLUDE_TESTS)
46   add_subdirectory(test)
47   add_subdirectory(unittests)
48   umbrella_lit_testsuite_end(check-clang-tools)
49 endif()