Skip to content

Commit 6ee5e69

Browse files
committed
[gn] port 10c6ebc (-gen-clang-diags-compat-ids)
1 parent cde90e6 commit 6ee5e69

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,27 @@ foreach(diag_group, diag_groups) {
4949
]
5050
td_file = "Diagnostic.td"
5151
}
52+
53+
clang_tablegen("Diagnostic${diag_group}CompatIDs") {
54+
args = [
55+
"-gen-clang-diags-compat-ids",
56+
"-clang-component=${diag_group}",
57+
]
58+
td_file = "Diagnostic.td"
59+
}
5260
}
5361
group("diags_tablegen") {
54-
# DiagnosticGroups and DiagnosticIndexName are intentionally not part of this
55-
# group. Much of clang depends on the DiagKinds.inc files transitively,
56-
# but almost nothing needs DiagnosticGroups.inc or DiagnosticIndexName.inc.
62+
# DiagnosticGroups, DiagnosticIndexName, DiagnosticAllCompatIDs are
63+
# intentionally not part of this group. Much of clang depends on the
64+
# DiagKinds.inc files transitively, but almost nothing needs
65+
# DiagnosticGroups.inc, DiagnosticIndexName.inc, or
66+
# DiagnosticAllCompatIDs.inc.
5767
public_deps = []
5868
foreach(diag_group, diag_groups) {
5969
public_deps += [
6070
":Diagnostic${diag_group}Kinds",
6171
":Diagnostic${diag_group}Enums",
72+
":Diagnostic${diag_group}CompatIDs",
6273
]
6374
}
6475
}
@@ -73,6 +84,11 @@ clang_tablegen("DiagnosticIndexName") {
7384
td_file = "Diagnostic.td"
7485
}
7586

87+
clang_tablegen("DiagnosticAllCompatIDs") {
88+
args = [ "-gen-clang-diags-compat-ids" ]
89+
td_file = "Diagnostic.td"
90+
}
91+
7692
# Attributes
7793

7894
clang_tablegen("AttrList") {

llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static_library("Basic") {
5454
":write_vcsversion",
5555
"//clang/include/clang/Basic:AttrHasAttributeImpl",
5656
"//clang/include/clang/Basic:CXX11AttributeInfo",
57+
"//clang/include/clang/Basic:DiagnosticAllCompatIDs",
5758
"//clang/include/clang/Basic:arm_fp16",
5859
"//clang/include/clang/Basic:arm_neon",
5960
"//clang/include/clang/Config",

0 commit comments

Comments
 (0)