2019-03-26 11:48:25 +08:00
|
|
|
if (NOT DEFINED CLANGD_BUILD_XPC)
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
set(CLANGD_BUILD_XPC_DEFAULT ON)
|
|
|
|
else ()
|
|
|
|
set(CLANGD_BUILD_XPC_DEFAULT OFF)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
set(CLANGD_BUILD_XPC ${CLANGD_BUILD_XPC_DEFAULT} CACHE BOOL "Build XPC Support For Clangd." FORCE)
|
|
|
|
|
|
|
|
unset(CLANGD_BUILD_XPC_DEFAULT)
|
2019-01-16 08:24:22 +08:00
|
|
|
endif ()
|
|
|
|
|
2013-09-04 01:58:19 +08:00
|
|
|
add_subdirectory(clang-apply-replacements)
|
2016-09-02 10:56:07 +08:00
|
|
|
add_subdirectory(clang-reorder-fields)
|
2013-09-05 01:35:07 +08:00
|
|
|
add_subdirectory(modularize)
|
2014-07-15 06:15:29 +08:00
|
|
|
add_subdirectory(clang-tidy)
|
2016-09-08 02:28:55 +08:00
|
|
|
add_subdirectory(clang-tidy-vs)
|
2014-07-15 06:15:29 +08:00
|
|
|
|
2019-03-15 19:54:01 +08:00
|
|
|
add_subdirectory(clang-change-namespace)
|
2018-03-23 07:34:46 +08:00
|
|
|
add_subdirectory(clang-doc)
|
2019-03-25 22:09:10 +08:00
|
|
|
add_subdirectory(clang-include-fixer)
|
[clang-move] A prototype tool for moving class definition to new file.
Summary:
This patch introduces a new tool which moves a specific class definition
from files (.h, .cc) to new files (.h, .cc), which mostly acts like
"Extract class defintion". In the long term, this tool should be
merged in to clang-refactoring as a subtool.
clang-move not only moves class definition, but also moves all the
forward declarations, functions defined in anonymous namespace and #include
headers to new files, to make sure the new files are compliable as much
as possible.
To move `Foo` from old.[h/cc] to new.[h/cc], use:
```
clang-move -name=Foo -old_header=old.h -old_cc=old.cc -new_header=new.h
-new_cc=new.cc old.cc
```
To move `Foo` from old.h to new.h, use:
```
clang-move -name=Foo -old_header=old.h -new_header=new.h old.cc
```
Reviewers: klimek, djasper, ioeric
Subscribers: mgorny, beanz, Eugene.Zelenko, bkramer, omtcyfz, cfe-commits
Differential Revision: https://reviews.llvm.org/D24243
llvm-svn: 282070
2016-09-21 21:18:19 +08:00
|
|
|
add_subdirectory(clang-move)
|
2019-03-25 22:09:10 +08:00
|
|
|
add_subdirectory(clang-query)
|
2017-02-07 18:28:20 +08:00
|
|
|
add_subdirectory(clangd)
|
2014-07-15 06:15:29 +08:00
|
|
|
add_subdirectory(pp-trace)
|
2013-09-05 01:35:07 +08:00
|
|
|
add_subdirectory(tool-template)
|
2012-08-07 16:33:04 +08:00
|
|
|
|
|
|
|
# Add the common testsuite after all the tools.
|
2017-08-29 13:58:08 +08:00
|
|
|
if(CLANG_INCLUDE_TESTS)
|
2012-08-07 16:33:04 +08:00
|
|
|
add_subdirectory(test)
|
2013-04-03 23:11:08 +08:00
|
|
|
add_subdirectory(unittests)
|
2014-07-15 06:15:29 +08:00
|
|
|
endif()
|
2016-01-27 19:37:08 +08:00
|
|
|
|
|
|
|
option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
|
|
|
|
${LLVM_INCLUDE_DOCS})
|
|
|
|
if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
|
|
|
|
add_subdirectory(docs)
|
|
|
|
endif()
|
|
|
|
|