@@ -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}
5361group (" 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
7894clang_tablegen (" AttrList" ) {
0 commit comments