Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / tools / clang-format / CMakeLists.txt
blob1c61a3c8fb8036836ea5c93e11b4d996580aed3e
1 set(LLVM_LINK_COMPONENTS support)
3 add_clang_tool(clang-format
4   ClangFormat.cpp
5   )
7 set(CLANG_FORMAT_LIB_DEPS
8   clangBasic
9   clangFormat
10   clangRewrite
11   clangToolingCore
12   )
14 clang_target_link_libraries(clang-format
15   PRIVATE
16   ${CLANG_FORMAT_LIB_DEPS}
17   )
19 if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE )
20   add_subdirectory(fuzzer)
21 endif()
23 install(FILES clang-format-bbedit.applescript
24   DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
25   COMPONENT clang-format)
26 install(PROGRAMS clang-format-diff.py
27   DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
28   COMPONENT clang-format)
29 install(FILES clang-format-sublime.py
30   DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
31   COMPONENT clang-format)
32 install(FILES clang-format.el
33   DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
34   COMPONENT clang-format)
35 install(FILES clang-format.py
36   DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
37   COMPONENT clang-format)
38 install(PROGRAMS git-clang-format
39   DESTINATION "${CMAKE_INSTALL_BINDIR}"
40   COMPONENT clang-format)
42 if (WIN32 AND NOT CYGWIN)
43   install(PROGRAMS git-clang-format.bat
44     DESTINATION "${CMAKE_INSTALL_BINDIR}"
45     COMPONENT clang-format)
46 endif()