================
@@ -65,6 +65,24 @@ class DiagGroup<string Name, list<DiagGroup> subgroups = [],
code docs = [{}]> {
class InGroup<DiagGroup G> { DiagGroup Group = G; }
//class IsGroup<string Name> { DiagGroup Group = DiagGroup<Name>; }
+// Specifies an explicit Stable ID for a diagnostic, rather than the default
one
+// generated from the diagnostic's name.
+class StableId<string Id> { string StableId = Id; }
+
+// Specifies a list of Stable IDs by which the diagnostic was previously known.
+// If the Stable ID of a diagnostic is renamed, the previous Stable ID should
be
+// added to the LegacyStableIds list.
+//
+// If a diagnostic is split into two or more diagnostics for specific cases,
the
+// Stable ID of the original diagnostic should be added to the LegacyStableIds
+// list of each of the new diagnostics created from it.
+//
+// If two or more diagnostics
+// are merged into a single diagnostic, the Stable ID of each of the original
+// diagnostics should be added to the LegacyStableIds list of the new (merged)
+// diagnostic.
----------------
steakhal wrote:
Could you please re-flow this comment? I was surprised by the line break at the
end of the first line while continuing the sentence on the next line.
https://github.com/llvm/llvm-project/pull/168153
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits