[llvm] 6ee5e69 - [gn] port 10c6ebc4271 (-gen-clang-diags-compat-ids)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 4 10:25:47 PDT 2025
Author: Nico Weber
Date: 2025-04-04T13:25:41-04:00
New Revision: 6ee5e694bffd97e69fe5459fc8f94b79b91c88fb
URL: https://github.com/llvm/llvm-project/commit/6ee5e694bffd97e69fe5459fc8f94b79b91c88fb
DIFF: https://github.com/llvm/llvm-project/commit/6ee5e694bffd97e69fe5459fc8f94b79b91c88fb.diff
LOG: [gn] port 10c6ebc4271 (-gen-clang-diags-compat-ids)
Added:
Modified:
llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
index 7db37467cfc8b..65dd10e7570e8 100644
--- a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
@@ -49,16 +49,27 @@ foreach(diag_group, diag_groups) {
]
td_file = "Diagnostic.td"
}
+
+ clang_tablegen("Diagnostic${diag_group}CompatIDs") {
+ args = [
+ "-gen-clang-diags-compat-ids",
+ "-clang-component=${diag_group}",
+ ]
+ td_file = "Diagnostic.td"
+ }
}
group("diags_tablegen") {
- # DiagnosticGroups and DiagnosticIndexName are intentionally not part of this
- # group. Much of clang depends on the DiagKinds.inc files transitively,
- # but almost nothing needs DiagnosticGroups.inc or DiagnosticIndexName.inc.
+ # DiagnosticGroups, DiagnosticIndexName, DiagnosticAllCompatIDs are
+ # intentionally not part of this group. Much of clang depends on the
+ # DiagKinds.inc files transitively, but almost nothing needs
+ # DiagnosticGroups.inc, DiagnosticIndexName.inc, or
+ # DiagnosticAllCompatIDs.inc.
public_deps = []
foreach(diag_group, diag_groups) {
public_deps += [
":Diagnostic${diag_group}Kinds",
":Diagnostic${diag_group}Enums",
+ ":Diagnostic${diag_group}CompatIDs",
]
}
}
@@ -73,6 +84,11 @@ clang_tablegen("DiagnosticIndexName") {
td_file = "Diagnostic.td"
}
+clang_tablegen("DiagnosticAllCompatIDs") {
+ args = [ "-gen-clang-diags-compat-ids" ]
+ td_file = "Diagnostic.td"
+}
+
# Attributes
clang_tablegen("AttrList") {
diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
index f73f151878809..c8f4cd8c35b98 100644
--- a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
@@ -54,6 +54,7 @@ static_library("Basic") {
":write_vcsversion",
"//clang/include/clang/Basic:AttrHasAttributeImpl",
"//clang/include/clang/Basic:CXX11AttributeInfo",
+ "//clang/include/clang/Basic:DiagnosticAllCompatIDs",
"//clang/include/clang/Basic:arm_fp16",
"//clang/include/clang/Basic:arm_neon",
"//clang/include/clang/Config",
More information about the llvm-commits
mailing list