brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 87050db Raw
53 lines · plain
1set(LLVM_SUBPROJECT_TITLE "Clang Tools Extra")2 3include(CMakeDependentOption)4include(GNUInstallDirs)5 6option(CLANG_TIDY_ENABLE_STATIC_ANALYZER7  "Include static analyzer checks in clang-tidy" ON)8option(CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS9  "Enable query-based custom checks in clang-tidy" ON)10 11if(CLANG_INCLUDE_TESTS)12  umbrella_lit_testsuite_begin(check-clang-tools)13 14  option(CLANG_TOOLS_TEST_USE_VG "Run Clang tools' tests under Valgrind" OFF)15  if(CLANG_TOOLS_TEST_USE_VG)16    set_property(GLOBAL APPEND PROPERTY LLVM_CLANG_TOOLS_LIT_EXTRA_ARGS "--vg")17  endif()18endif()19 20add_subdirectory(clang-apply-replacements)21add_subdirectory(clang-reorder-fields)22add_subdirectory(modularize)23add_subdirectory(clang-tidy)24 25add_subdirectory(clang-change-namespace)26add_subdirectory(clang-doc)27add_subdirectory(clang-include-fixer)28add_subdirectory(clang-move)29add_subdirectory(clang-query)30add_subdirectory(include-cleaner)31add_subdirectory(pp-trace)32add_subdirectory(tool-template)33 34option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."35  ${LLVM_INCLUDE_DOCS})36if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )37  add_subdirectory(docs)38endif()39 40# clangd has its own CMake tree. It requires threads.41CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON42                       "LLVM_ENABLE_THREADS" OFF)43if (CLANG_ENABLE_CLANGD)44  add_subdirectory(clangd)45endif()46 47# Add the common testsuite after all the tools.48if(CLANG_INCLUDE_TESTS)49  add_subdirectory(test)50  add_subdirectory(unittests)51  umbrella_lit_testsuite_end(check-clang-tools)52endif()53