llvm.org GIT mirror llvm / cc7f348
[gn build] Add build files for clang/tools/{clang-refactor,clang-rename}, clang/utils/hmaptool, clang/lib/Tooling/Refactoring Needed for check-clang. Differential Revision: https://reviews.llvm.org/D56055 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350025 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
5 changed file(s) with 75 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
33 "//clang/tools/clang-diff",
44 "//clang/tools/clang-format",
55 "//clang/tools/clang-import-test",
6 "//clang/tools/clang-refactor",
7 "//clang/tools/clang-rename",
68 "//clang/tools/diagtool",
9 "//clang/utils/hmaptool",
710 "//lld/test",
811 "//llvm/tools/llvm-cat",
912 "//llvm/tools/llvm-lto",
0 static_library("Refactoring") {
1 output_name = "clangToolingRefactor"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/ASTMatchers",
6 "//clang/lib/Basic",
7 "//clang/lib/Format",
8 "//clang/lib/Index",
9 "//clang/lib/Lex",
10 "//clang/lib/Rewrite",
11 "//clang/lib/Tooling/Core",
12 "//llvm/lib/Support",
13 ]
14 include_dirs = [ "." ]
15 sources = [
16 "ASTSelection.cpp",
17 "ASTSelectionRequirements.cpp",
18 "AtomicChange.cpp",
19 "Extract/Extract.cpp",
20 "Extract/SourceExtraction.cpp",
21 "RefactoringActions.cpp",
22 "Rename/RenamingAction.cpp",
23 "Rename/SymbolOccurrences.cpp",
24 "Rename/USRFinder.cpp",
25 "Rename/USRFindingAction.cpp",
26 "Rename/USRLocFinder.cpp",
27 ]
28 }
0 executable("clang-refactor") {
1 configs += [ "//llvm/utils/gn/build:clang_code" ]
2 deps = [
3 "//clang/lib/AST",
4 "//clang/lib/Basic",
5 "//clang/lib/Format",
6 "//clang/lib/Frontend",
7 "//clang/lib/Lex",
8 "//clang/lib/Rewrite",
9 "//clang/lib/Tooling",
10 "//clang/lib/Tooling/Refactoring",
11 "//llvm/lib/Option",
12 "//llvm/lib/Support",
13 ]
14 sources = [
15 "ClangRefactor.cpp",
16 "TestSupport.cpp",
17 ]
18 }
0 executable("clang-rename") {
1 configs += [ "//llvm/utils/gn/build:clang_code" ]
2 deps = [
3 "//clang/lib/Basic",
4 "//clang/lib/Frontend",
5 "//clang/lib/Rewrite",
6 "//clang/lib/Tooling",
7 "//clang/lib/Tooling/Core",
8 "//clang/lib/Tooling/Refactoring",
9 "//llvm/lib/Option",
10 "//llvm/lib/Support",
11 ]
12 sources = [
13 "ClangRename.cpp",
14 ]
15 }
0 copy("hmaptool") {
1 sources = [
2 "hmaptool",
3 ]
4 outputs = [
5 "$root_out_dir/bin/{{source_file_part}}",
6 ]
7 }