• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_LINK_COMPONENTS support)
2
3add_clang_tool(clang-format
4  ClangFormat.cpp
5  )
6
7set(CLANG_FORMAT_LIB_DEPS
8  clangBasic
9  clangFormat
10  clangRewrite
11  clangToolingCore
12  )
13
14target_link_libraries(clang-format
15  ${CLANG_FORMAT_LIB_DEPS}
16  )
17
18if( LLVM_USE_SANITIZE_COVERAGE )
19  add_subdirectory(fuzzer)
20endif()
21
22install(PROGRAMS clang-format-bbedit.applescript
23  DESTINATION share/clang
24  COMPONENT clang-format)
25install(PROGRAMS clang-format-diff.py
26  DESTINATION share/clang
27  COMPONENT clang-format)
28install(PROGRAMS clang-format-sublime.py
29  DESTINATION share/clang
30  COMPONENT clang-format)
31install(PROGRAMS clang-format.el
32  DESTINATION share/clang
33  COMPONENT clang-format)
34install(PROGRAMS clang-format.py
35  DESTINATION share/clang
36  COMPONENT clang-format)
37install(PROGRAMS git-clang-format
38  DESTINATION bin
39  COMPONENT clang-format)
40