File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
llvm/utils/gn/secondary/clang/include/clang/Basic Expand file tree Collapse file tree 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) {
4040 ]
4141 td_file = " Diagnostic.td"
4242 }
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+ }
4351}
4452group (" diags_tablegen" ) {
4553 # DiagnosticGroups and DiagnosticIndexName are intentionally not part of this
4654 # group. Much of clang depends on the DiagKinds.inc files transitively,
4755 # but almost nothing needs DiagnosticGroups.inc or DiagnosticIndexName.inc.
4856 public_deps = []
4957 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+ ]
5162 }
5263}
5364
You can’t perform that action at this time.
0 commit comments