1 set(LLVM_LINK_COMPONENTS support)
3 add_clang_tool(clang-format
7 set(CLANG_FORMAT_LIB_DEPS
14 clang_target_link_libraries(clang-format
16 ${CLANG_FORMAT_LIB_DEPS}
19 if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE )
20 add_subdirectory(fuzzer)
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)