[clangd] Add RemoveUsingNamespace tweak.
[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   RemoveUsingNamespace.cpp
23   SwapIfBranches.cpp
24
25   LINK_LIBS
26   clangAST
27   clangBasic
28   clangDaemon
29   clangToolingCore
30   clangToolingRefactoring
31   clangToolingSyntax
32   )