051b6c4369de2d61c775b3bdd37d21c6b0e3d33f
[platform/upstream/llvm.git] / clang-tools-extra / clangd / refactor / tweaks / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..)
2
3 set(LLVM_LINK_COMPONENTS
4   support
5   )
6
7 # A target containing all code tweaks (i.e. mini-refactorings) provided by
8 # clangd.
9 # Built as an object library to make sure the linker does not remove global
10 # constructors that register individual tweaks in a global registry.
11 # To enable these tweaks in executables or shared libraries, add
12 # $<TARGET_OBJECTS:obj.clangDaemonTweaks> to a list of sources, see
13 # clangd/tool/CMakeLists.txt for an example.
14 add_clang_library(clangDaemonTweaks OBJECT
15   AnnotateHighlightings.cpp
16   DumpAST.cpp
17   ExpandAutoType.cpp
18   ExpandMacro.cpp
19   ExtractFunction.cpp
20   ExtractVariable.cpp
21   RawStringLiteral.cpp
22   SwapIfBranches.cpp
23
24   LINK_LIBS
25   clangAST
26   clangBasic
27   clangDaemon
28   clangToolingCore
29   clangToolingRefactoring
30   clangToolingSyntax
31   )