annotate clang-tools-extra/CMakeLists.txt @ 227:21e6aa2e49ef

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 19 Jul 2021 06:57:16 +0900
parents 2e18cbf3894f
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 include(CMakeDependentOption)
anatofuz
parents:
diff changeset
2
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 "Include static analyzer checks in clang-tidy" ON)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5
150
anatofuz
parents:
diff changeset
6 add_subdirectory(clang-apply-replacements)
anatofuz
parents:
diff changeset
7 add_subdirectory(clang-reorder-fields)
anatofuz
parents:
diff changeset
8 add_subdirectory(modularize)
anatofuz
parents:
diff changeset
9 add_subdirectory(clang-tidy)
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 add_subdirectory(clang-change-namespace)
anatofuz
parents:
diff changeset
12 add_subdirectory(clang-doc)
anatofuz
parents:
diff changeset
13 add_subdirectory(clang-include-fixer)
anatofuz
parents:
diff changeset
14 add_subdirectory(clang-move)
anatofuz
parents:
diff changeset
15 add_subdirectory(clang-query)
anatofuz
parents:
diff changeset
16 add_subdirectory(pp-trace)
anatofuz
parents:
diff changeset
17 add_subdirectory(tool-template)
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 # Add the common testsuite after all the tools.
anatofuz
parents:
diff changeset
20 if(CLANG_INCLUDE_TESTS)
anatofuz
parents:
diff changeset
21 add_subdirectory(test)
anatofuz
parents:
diff changeset
22 add_subdirectory(unittests)
anatofuz
parents:
diff changeset
23 endif()
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
anatofuz
parents:
diff changeset
26 ${LLVM_INCLUDE_DOCS})
anatofuz
parents:
diff changeset
27 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
anatofuz
parents:
diff changeset
28 add_subdirectory(docs)
anatofuz
parents:
diff changeset
29 endif()
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 # clangd has its own CMake tree. It requires threads.
anatofuz
parents:
diff changeset
32 CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
anatofuz
parents:
diff changeset
33 "LLVM_ENABLE_THREADS" OFF)
anatofuz
parents:
diff changeset
34 if (CLANG_ENABLE_CLANGD)
anatofuz
parents:
diff changeset
35 add_subdirectory(clangd)
anatofuz
parents:
diff changeset
36 endif()