File tree 1 file changed +12
-1
lines changed
llvm/utils/gn/secondary/clang/include/clang/Basic 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,25 @@ foreach(diag_group, diag_groups) {
40
40
]
41
41
td_file = " Diagnostic.td"
42
42
}
43
+
44
+ clang_tablegen (" Diagnostic${ diag_group } Enums" ) {
45
+ args = [
46
+ " -gen-clang-diags-enums" ,
47
+ " -clang-component=${ diag_group } " ,
48
+ ]
49
+ td_file = " Diagnostic.td"
50
+ }
43
51
}
44
52
group (" diags_tablegen" ) {
45
53
# DiagnosticGroups and DiagnosticIndexName are intentionally not part of this
46
54
# group. Much of clang depends on the DiagKinds.inc files transitively,
47
55
# but almost nothing needs DiagnosticGroups.inc or DiagnosticIndexName.inc.
48
56
public_deps = []
49
57
foreach (diag_group , diag_groups ) {
50
- public_deps += [ " :Diagnostic${ diag_group } Kinds" ]
58
+ public_deps += [
59
+ " :Diagnostic${ diag_group } Kinds" ,
60
+ " :Diagnostic${ diag_group } Enums" ,
61
+ ]
51
62
}
52
63
}
53
64
You can’t perform that action at this time.
0 commit comments