[llvm] f3a2443 - [gn] port 3432f4bf86e7 (//llvm/lib/Testing/Annotations)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 17:16:27 PST 2023
Author: Nico Weber
Date: 2023-01-12T20:16:12-05:00
New Revision: f3a2443a20a27211e260352081e99edfe0799e1e
URL: https://github.com/llvm/llvm-project/commit/f3a2443a20a27211e260352081e99edfe0799e1e
DIFF: https://github.com/llvm/llvm-project/commit/f3a2443a20a27211e260352081e99edfe0799e1e.diff
LOG: [gn] port 3432f4bf86e7 (//llvm/lib/Testing/Annotations)
Added:
llvm/utils/gn/secondary/llvm/lib/Testing/Annotations/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Testing/Annotations/BUILD.gn
Modified:
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/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
index b65db84bd38b2..d7fddee09cba1 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
@@ -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 = [
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/unittests/BUILD.gn
index a466bb5076260..bf6b3048c813c 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/unittests/BUILD.gn
@@ -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" ]
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn
index 97f1bec0b66dc..3fa7e7c379597 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-tidy/BUILD.gn
@@ -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" ]
diff --git a/llvm/utils/gn/secondary/clang/unittests/AST/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/AST/BUILD.gn
index 133c1e7a241e2..18b9b0099f7bb 100644
--- a/llvm/utils/gn/secondary/clang/unittests/AST/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/AST/BUILD.gn
@@ -12,6 +12,7 @@ unittest("ASTTests") {
"//clang/lib/Tooling",
"//llvm/lib/Support",
"//llvm/lib/TargetParser",
+ "//llvm/lib/Testing/Annotations",
"//llvm/lib/Testing/Support",
]
sources = [
diff --git a/llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn
index 9b07b8d5b2ae0..a3a3966fed26b 100644
--- a/llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn
@@ -14,6 +14,7 @@ unittest("ClangAnalysisFlowSensitiveTests") {
"//clang/lib/Testing",
"//clang/lib/Tooling",
"//llvm/lib/Support",
+ "//llvm/lib/Testing/Annotations",
"//llvm/lib/Testing/Support",
]
sources = [
diff --git a/llvm/utils/gn/secondary/clang/unittests/Sema/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Sema/BUILD.gn
index 817f4803d6c9f..41adc22f65c94 100644
--- a/llvm/utils/gn/secondary/clang/unittests/Sema/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/Sema/BUILD.gn
@@ -11,6 +11,7 @@ unittest("SemaTests") {
"//clang/lib/Testing",
"//clang/lib/Tooling",
"//llvm/lib/Support",
+ "//llvm/lib/Testing/Annotations",
"//llvm/lib/Testing/Support",
]
sources = [
diff --git a/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
index 6aeefa9a9669e..e784b39cd0f18 100644
--- a/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
@@ -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 = [
diff --git a/llvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
index 0f35297e9cbd8..b32d9d3a375cc 100644
--- a/llvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
@@ -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
index 0000000000000..117984dfbead6
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/Testing/Annotations/BUILD.gn
@@ -0,0 +1,6 @@
+static_library("Annotations") {
+ output_name = "LLVMTestingAnnotations"
+ deps = [ "//llvm/lib/Support" ]
+ sources = [ "Annotations.cpp" ]
+ testonly = true
+}
diff --git a/llvm/utils/gn/secondary/llvm/lib/Testing/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Testing/Support/BUILD.gn
index 6d7d525d01afb..cfa410b4e9117 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Testing/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Testing/Support/BUILD.gn
@@ -5,7 +5,6 @@ static_library("Support") {
"//third-party/unittest:gtest",
]
sources = [
- "Annotations.cpp",
"Error.cpp",
"SupportHelpers.cpp",
]
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
index 62268456bb882..0e91a39e439b5 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
@@ -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
index 0000000000000..e52f17b193457
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/unittests/Testing/Annotations/BUILD.gn
@@ -0,0 +1,9 @@
+import("//third-party/unittest/unittest.gni")
+
+unittest("TestingSupportTests") {
+ deps = [
+ "//llvm/lib/Support",
+ "//llvm/lib/Testing/Annotations",
+ ]
+ sources = [ "AnnotationsTest.cpp" ]
+}
More information about the llvm-commits
mailing list