150
|
1 include(CMakeDependentOption)
|
|
2
|
207
|
3 option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
|
|
4 "Include static analyzer checks in clang-tidy" ON)
|
|
5
|
150
|
6 add_subdirectory(clang-apply-replacements)
|
|
7 add_subdirectory(clang-reorder-fields)
|
|
8 add_subdirectory(modularize)
|
|
9 add_subdirectory(clang-tidy)
|
|
10
|
|
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)
|
|
18
|
|
19 # Add the common testsuite after all the tools.
|
|
20 if(CLANG_INCLUDE_TESTS)
|
|
21 add_subdirectory(test)
|
|
22 add_subdirectory(unittests)
|
|
23 endif()
|
|
24
|
|
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()
|
|
30
|
|
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()
|