[gn] port 3432f4bf86e7 (//llvm/lib/Testing/Annotations)
authorNico Weber <thakis@chromium.org>
Fri, 13 Jan 2023 01:07:55 +0000 (20:07 -0500)
committerNico Weber <thakis@chromium.org>
Fri, 13 Jan 2023 01:16:12 +0000 (20:16 -0500)
12 files changed:
llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/pseudo/unittests/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/AST/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/Sema/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Testing/Annotations/BUILD.gn [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/lib/Testing/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Testing/Annotations/BUILD.gn [new file with mode: 0644]

index b65db84bd38b236d31b6f104af3ae25e63aca869..d7fddee09cba16984686a4744c42535c19e9cee1 100644 (file)
@@ -29,6 +29,7 @@ unittest("ClangdTests") {
     "//clang/lib/Tooling/Syntax",
     "//llvm/include/llvm/Config:llvm-config",
     "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   include_dirs = [
index a466bb5076260877a93bc872cb3f4141bcc8a674..bf6b3048c813c51c01aed776b91b6d71c4f590ce 100644 (file)
@@ -9,6 +9,7 @@ unittest("ClangPseudoTests") {
     "//clang/lib/Lex",
     "//clang/lib/Testing",
     "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   include_dirs = [ "../include" ]
index 97f1bec0b66dc65871dbb411b7cf3493496b4b28..3fa7e7c3795977a29e2de162f99e48b11bea6876 100644 (file)
@@ -22,6 +22,7 @@ unittest("ClangTidyTests") {
     "//clang/lib/Tooling/Core",
     "//clang/lib/Tooling/Transformer",
     "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   include_dirs = [ "//clang-tools-extra/clang-tidy" ]
index 133c1e7a241e2156d2afb91a7abd9682d55c490a..18b9b0099f7bbab1a882e2754eab2d0ab2598648 100644 (file)
@@ -12,6 +12,7 @@ unittest("ASTTests") {
     "//clang/lib/Tooling",
     "//llvm/lib/Support",
     "//llvm/lib/TargetParser",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   sources = [
index 9b07b8d5b2ae0fb6d2161c0e97e2e87771ba10f3..a3a3966fed26b96d9abdf6a1a09616e28a4fdbca 100644 (file)
@@ -14,6 +14,7 @@ unittest("ClangAnalysisFlowSensitiveTests") {
     "//clang/lib/Testing",
     "//clang/lib/Tooling",
     "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   sources = [
index 817f4803d6c9fc296c9fcb0e8c5d6bd5ac126b20..41adc22f65c94f45b42237989db2511ef4c84759 100644 (file)
@@ -11,6 +11,7 @@ unittest("SemaTests") {
     "//clang/lib/Testing",
     "//clang/lib/Tooling",
     "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   sources = [
index 6aeefa9a9669e91b0f433850b8bb412934f2aa28..e784b39cd0f180fb25808c402b65a4da8adf4e04 100644 (file)
@@ -22,6 +22,7 @@ unittest("ToolingTests") {
     "//llvm/lib/Support",
     "//llvm/lib/Target:TargetsToBuild",
     "//llvm/lib/TargetParser",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   sources = [
index 0f35297e9cbd8572023aa5b1c637de83ed6a9249..b32d9d3a375ccffaeebed5128267276226c8f7f4 100644 (file)
@@ -13,6 +13,7 @@ unittest("SyntaxTests") {
     "//clang/lib/Tooling/Syntax",
     "//llvm/lib/Support",
     "//llvm/lib/Target:TargetsToBuild",
+    "//llvm/lib/Testing/Annotations",
     "//llvm/lib/Testing/Support",
   ]
   sources = [
diff --git a/llvm/utils/gn/secondary/llvm/lib/Testing/Annotations/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Testing/Annotations/BUILD.gn
new file mode 100644 (file)
index 0000000..117984d
--- /dev/null
@@ -0,0 +1,6 @@
+static_library("Annotations") {
+  output_name = "LLVMTestingAnnotations"
+  deps = [ "//llvm/lib/Support" ]
+  sources = [ "Annotations.cpp" ]
+  testonly = true
+}
index 6d7d525d01afb088d55862501c32565cc8a569bd..cfa410b4e9117c6c88cf2bb8a3ca90c5bbd13d6d 100644 (file)
@@ -5,7 +5,6 @@ static_library("Support") {
     "//third-party/unittest:gtest",
   ]
   sources = [
-    "Annotations.cpp",
     "Error.cpp",
     "SupportHelpers.cpp",
   ]
index 62268456bb8822ec180912264c1e88398bbaf4a6..0e91a39e439b5f3c203f5a425484c1dcba01a501 100644 (file)
@@ -12,7 +12,6 @@ unittest("SupportTests") {
     "AlignOfTest.cpp",
     "AlignmentTest.cpp",
     "AllocatorTest.cpp",
-    "AnnotationsTest.cpp",
     "ArrayRecyclerTest.cpp",
     "BLAKE3Test.cpp",
     "Base64Test.cpp",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Testing/Annotations/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Testing/Annotations/BUILD.gn
new file mode 100644 (file)
index 0000000..e52f17b
--- /dev/null
@@ -0,0 +1,9 @@
+import("//third-party/unittest/unittest.gni")
+
+unittest("TestingSupportTests") {
+  deps = [
+    "//llvm/lib/Support",
+    "//llvm/lib/Testing/Annotations",
+  ]
+  sources = [ "AnnotationsTest.cpp" ]
+}