]> granicus.if.org Git - llvm/commitdiff
gn build: (manually) merge r374271
authorNico Weber <nicolasweber@gmx.de>
Thu, 10 Oct 2019 02:48:47 +0000 (02:48 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 10 Oct 2019 02:48:47 +0000 (02:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374272 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/clang-tools-extra/clang-tidy/utils/BUILD.gn
utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn
utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn
utils/gn/secondary/clang/lib/Tooling/Transformer/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/clang/unittests/Tooling/BUILD.gn

index 2deb47501ce6cd18a8907af41dfb35b06fcd0261..f3affc2f96560c10620b845051e77b4067c04103 100644 (file)
@@ -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 = [
index 20207836dd10c3dcaf90c677743438e233d50d75..29c5f5206c08dfb5560feb24d36f1cf2853c9963 100644 (file)
@@ -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" ]
index f93debc1fae5a31242215d7f0659d5c85c6701b1..29445c0a1b0e1cb6090ce34eaa51feec854230dc 100644 (file)
@@ -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 (file)
index 0000000..c116407
--- /dev/null
@@ -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",
+  ]
+}
index cbd629c3a55710759770312ad49fda5a846ea333..7bdd209c1858ef3b226665ad5272a6b62650a377 100644 (file)
@@ -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",