xref: /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn (revision 82d56013d7b633d116a93943de88e08335357a7c)
1# A target containing all code tweaks (i.e. mini-refactorings) provided by
2# clangd.
3# Built as a source_set to make sure the linker does not remove global
4# constructors that register individual tweaks in a global registry.
5source_set("tweaks") {
6  configs += [ "//llvm/utils/gn/build:clang_code" ]
7  deps = [
8    "//clang-tools-extra/clangd",
9    "//clang-tools-extra/clangd/support",
10    "//clang/lib/AST",
11    "//clang/lib/Tooling/Core",
12    "//llvm/lib/Support",
13  ]
14  include_dirs = [ "../.." ]
15  sources = [
16    "AddUsing.cpp",
17    "AnnotateHighlightings.cpp",
18    "DefineInline.cpp",
19    "DefineOutline.cpp",
20    "DumpAST.cpp",
21    "ExpandAutoType.cpp",
22    "ExpandMacro.cpp",
23    "ExtractFunction.cpp",
24    "ExtractVariable.cpp",
25    "ObjCLocalizeStringLiteral.cpp",
26    "PopulateSwitch.cpp",
27    "RawStringLiteral.cpp",
28    "RemoveUsingNamespace.cpp",
29    "SwapIfBranches.cpp",
30  ]
31}
32