From: Nico Weber Date: Thu, 10 Oct 2019 02:48:47 +0000 (+0000) Subject: gn build: (manually) merge r374271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8320609689d064e7bf1d5f21b308fd47a507053;p=llvm gn build: (manually) merge r374271 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374272 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/secondary/clang-tools-extra/clang-tidy/utils/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-tidy/utils/BUILD.gn index 2deb47501ce..f3affc2f965 100644 --- a/utils/gn/secondary/clang-tools-extra/clang-tidy/utils/BUILD.gn +++ b/utils/gn/secondary/clang-tools-extra/clang-tidy/utils/BUILD.gn @@ -7,7 +7,7 @@ static_library("utils") { "//clang/lib/ASTMatchers", "//clang/lib/Basic", "//clang/lib/Lex", - "//clang/lib/Tooling/Refactoring", + "//clang/lib/Tooling/Transformer", "//llvm/lib/Support", ] sources = [ diff --git a/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn b/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn index 20207836dd1..29c5f5206c0 100644 --- a/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn +++ b/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn @@ -18,7 +18,7 @@ unittest("ClangTidyTests") { "//clang/lib/Serialization", "//clang/lib/Tooling", "//clang/lib/Tooling/Core", - "//clang/lib/Tooling/Refactoring", + "//clang/lib/Tooling/Transformer", "//llvm/lib/Support", ] include_dirs = [ "//clang-tools-extra/clang-tidy" ] diff --git a/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn b/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn index f93debc1fae..29445c0a1b0 100644 --- a/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn +++ b/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn @@ -19,16 +19,11 @@ static_library("Refactoring") { "AtomicChange.cpp", "Extract/Extract.cpp", "Extract/SourceExtraction.cpp", - "RangeSelector.cpp", "RefactoringActions.cpp", "Rename/RenamingAction.cpp", "Rename/SymbolOccurrences.cpp", "Rename/USRFinder.cpp", "Rename/USRFindingAction.cpp", "Rename/USRLocFinder.cpp", - "SourceCode.cpp", - "SourceCodeBuilders.cpp", - "Stencil.cpp", - "Transformer.cpp", ] } diff --git a/utils/gn/secondary/clang/lib/Tooling/Transformer/BUILD.gn b/utils/gn/secondary/clang/lib/Tooling/Transformer/BUILD.gn new file mode 100644 index 00000000000..c1164073410 --- /dev/null +++ b/utils/gn/secondary/clang/lib/Tooling/Transformer/BUILD.gn @@ -0,0 +1,20 @@ +static_library("Transformer") { + output_name = "clangToolingTransformer" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/lib/AST", + "//clang/lib/ASTMatchers", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//clang/lib/Tooling/Core", + "//clang/lib/Tooling/Refactoring", + "//llvm/lib/Support", + ] + sources = [ + "RangeSelector.cpp", + "SourceCode.cpp", + "SourceCodeBuilders.cpp", + "Stencil.cpp", + "Transformer.cpp", + ] +} diff --git a/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn b/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn index cbd629c3a55..7bdd209c185 100644 --- a/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn +++ b/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn @@ -14,6 +14,7 @@ unittest("ToolingTests") { "//clang/lib/Tooling", "//clang/lib/Tooling/Core", "//clang/lib/Tooling/Refactoring", + "//clang/lib/Tooling/Transformer", "//llvm/lib/Support", "//llvm/lib/Target:TargetsToBuild", "//llvm/lib/Testing/Support",