1include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..)
2
3set(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.
14add_clang_library(clangDaemonTweaks OBJECT
15  AddUsing.cpp
16  AnnotateHighlightings.cpp
17  DumpAST.cpp
18  DefineInline.cpp
19  DefineOutline.cpp
20  ExpandAutoType.cpp
21  ExpandMacro.cpp
22  ExtractFunction.cpp
23  ExtractVariable.cpp
24  ObjCLocalizeStringLiteral.cpp
25  PopulateSwitch.cpp
26  RawStringLiteral.cpp
27  RemoveUsingNamespace.cpp
28  SwapIfBranches.cpp
29
30  LINK_LIBS
31  clangAST
32  clangBasic
33  clangDaemon
34  clangdSupport
35  clangFormat
36  clangLex
37  clangToolingCore
38  clangToolingRefactoring
39  clangToolingSyntax
40
41  DEPENDS
42  omp_gen
43  )
44