@@ -49,16 +49,27 @@ foreach(diag_group, diag_groups) {
49
49
]
50
50
td_file = " Diagnostic.td"
51
51
}
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
+ }
52
60
}
53
61
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.
57
67
public_deps = []
58
68
foreach (diag_group , diag_groups ) {
59
69
public_deps += [
60
70
" :Diagnostic${ diag_group } Kinds" ,
61
71
" :Diagnostic${ diag_group } Enums" ,
72
+ " :Diagnostic${ diag_group } CompatIDs" ,
62
73
]
63
74
}
64
75
}
@@ -73,6 +84,11 @@ clang_tablegen("DiagnosticIndexName") {
73
84
td_file = " Diagnostic.td"
74
85
}
75
86
87
+ clang_tablegen (" DiagnosticAllCompatIDs" ) {
88
+ args = [ " -gen-clang-diags-compat-ids" ]
89
+ td_file = " Diagnostic.td"
90
+ }
91
+
76
92
# Attributes
77
93
78
94
clang_tablegen (" AttrList" ) {
0 commit comments