|
20 | 20 | #define DEFINE_DIAGNOSTIC_MACROS
|
21 | 21 | #include "DefineDiagnosticMacros.h"
|
22 | 22 |
|
23 |
| -ERROR(generic_sig_change,none,"%0 has generic signature change from %1 to %2", (StringRef, StringRef, StringRef)) |
| 23 | +ERROR(generic_sig_change,APIDigesterBreakage,"%0 has generic signature change from %1 to %2", (StringRef, StringRef, StringRef)) |
24 | 24 |
|
25 |
| -ERROR(raw_type_change,none,"%0(%1) is now %2 representable", (StringRef, StringRef, StringRef)) |
| 25 | +ERROR(raw_type_change,APIDigesterBreakage,"%0(%1) is now %2 representable", (StringRef, StringRef, StringRef)) |
26 | 26 |
|
27 |
| -ERROR(removed_decl,none,"%0 has been removed%select{| (deprecated)}1", (StringRef, bool)) |
| 27 | +ERROR(removed_decl,APIDigesterBreakage,"%0 has been removed%select{| (deprecated)}1", (StringRef, bool)) |
28 | 28 |
|
29 |
| -ERROR(moved_decl,none,"%0 has been moved to %1", (StringRef, StringRef)) |
| 29 | +ERROR(moved_decl,APIDigesterBreakage,"%0 has been moved to %1", (StringRef, StringRef)) |
30 | 30 |
|
31 |
| -ERROR(renamed_decl,none,"%0 has been renamed to %1", (StringRef, StringRef)) |
| 31 | +ERROR(renamed_decl,APIDigesterBreakage,"%0 has been renamed to %1", (StringRef, StringRef)) |
32 | 32 |
|
33 |
| -ERROR(decl_type_change,none,"%0 has %1 type change from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
| 33 | +ERROR(decl_type_change,APIDigesterBreakage,"%0 has %1 type change from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
34 | 34 |
|
35 |
| -ERROR(decl_attr_change,none,"%0 changes from %1 to %2", (StringRef, StringRef, StringRef)) |
| 35 | +ERROR(decl_attr_change,APIDigesterBreakage,"%0 changes from %1 to %2", (StringRef, StringRef, StringRef)) |
36 | 36 |
|
37 |
| -ERROR(decl_new_attr,none,"%0 is now %1", (StringRef, StringRef)) |
| 37 | +ERROR(decl_new_attr,APIDigesterBreakage,"%0 is now %1", (StringRef, StringRef)) |
38 | 38 |
|
39 |
| -ERROR(decl_reorder,none,"%0 in a non-resilient type changes position from %1 to %2", (StringRef, unsigned, unsigned)) |
| 39 | +ERROR(decl_reorder,APIDigesterBreakage,"%0 in a non-resilient type changes position from %1 to %2", (StringRef, unsigned, unsigned)) |
40 | 40 |
|
41 |
| -ERROR(decl_added,none,"%0 is added to a non-resilient type", (StringRef)) |
| 41 | +ERROR(decl_added,APIDigesterBreakage,"%0 is added to a non-resilient type", (StringRef)) |
42 | 42 |
|
43 |
| -ERROR(var_has_fixed_order_change,none,"%0 is %select{now|no longer}1 a stored property", (StringRef, bool)) |
| 43 | +ERROR(var_has_fixed_order_change,APIDigesterBreakage,"%0 is %select{now|no longer}1 a stored property", (StringRef, bool)) |
44 | 44 |
|
45 |
| -ERROR(func_has_fixed_order_change,none,"%0 is %select{now|no longer}1 a non-final instance function", (StringRef, bool)) |
| 45 | +ERROR(func_has_fixed_order_change,APIDigesterBreakage,"%0 is %select{now|no longer}1 a non-final instance function", (StringRef, bool)) |
46 | 46 |
|
47 |
| -ERROR(default_arg_removed,none,"%0 has removed default argument from %1", (StringRef, StringRef)) |
| 47 | +ERROR(default_arg_removed,APIDigesterBreakage,"%0 has removed default argument from %1", (StringRef, StringRef)) |
48 | 48 |
|
49 |
| -ERROR(conformance_removed,none,"%0 has removed %select{conformance to|inherited protocol}2 %1", (StringRef, StringRef, bool)) |
| 49 | +ERROR(conformance_removed,APIDigesterBreakage,"%0 has removed %select{conformance to|inherited protocol}2 %1", (StringRef, StringRef, bool)) |
50 | 50 |
|
51 |
| -ERROR(conformance_added,none,"%0 has added inherited protocol %1", (StringRef, StringRef)) |
| 51 | +ERROR(conformance_added,APIDigesterBreakage,"%0 has added inherited protocol %1", (StringRef, StringRef)) |
52 | 52 |
|
53 |
| -ERROR(existing_conformance_added,none,"%0 has added a conformance to an existing protocol %1", (StringRef, StringRef)) |
| 53 | +ERROR(existing_conformance_added,APIDigesterBreakage,"%0 has added a conformance to an existing protocol %1", (StringRef, StringRef)) |
54 | 54 |
|
55 |
| -ERROR(default_associated_type_removed,none,"%0 has removed default type %1", (StringRef, StringRef)) |
| 55 | +ERROR(default_associated_type_removed,APIDigesterBreakage,"%0 has removed default type %1", (StringRef, StringRef)) |
56 | 56 |
|
57 |
| -ERROR(protocol_req_added,none,"%0 has been added as a protocol requirement", (StringRef)) |
| 57 | +ERROR(protocol_req_added,APIDigesterBreakage,"%0 has been added as a protocol requirement", (StringRef)) |
58 | 58 |
|
59 |
| -ERROR(super_class_removed,none,"%0 has removed its super class %1", (StringRef, StringRef)) |
| 59 | +ERROR(super_class_removed,APIDigesterBreakage,"%0 has removed its super class %1", (StringRef, StringRef)) |
60 | 60 |
|
61 |
| -ERROR(super_class_changed,none,"%0 has changed its super class from %1 to %2", (StringRef, StringRef, StringRef)) |
| 61 | +ERROR(super_class_changed,APIDigesterBreakage,"%0 has changed its super class from %1 to %2", (StringRef, StringRef, StringRef)) |
62 | 62 |
|
63 |
| -ERROR(decl_kind_changed,none,"%0 has been changed to a %1", (StringRef, StringRef)) |
| 63 | +ERROR(decl_kind_changed,APIDigesterBreakage,"%0 has been changed to a %1", (StringRef, StringRef)) |
64 | 64 |
|
65 |
| -ERROR(optional_req_changed,none,"%0 is %select{now|no longer}1 an optional requirement", (StringRef, bool)) |
| 65 | +ERROR(optional_req_changed,APIDigesterBreakage,"%0 is %select{now|no longer}1 an optional requirement", (StringRef, bool)) |
66 | 66 |
|
67 |
| -ERROR(no_longer_open,none,"%0 is no longer open for subclassing", (StringRef)) |
| 67 | +ERROR(no_longer_open,APIDigesterBreakage,"%0 is no longer open for subclassing", (StringRef)) |
68 | 68 |
|
69 |
| -ERROR(func_type_escaping_changed,none,"%0 has %select{removed|added}2 @escaping in %1", (StringRef, StringRef, bool)) |
| 69 | +ERROR(func_type_escaping_changed,APIDigesterBreakage,"%0 has %select{removed|added}2 @escaping in %1", (StringRef, StringRef, bool)) |
70 | 70 |
|
71 |
| -ERROR(func_self_access_change,none,"%0 has self access kind changing from %1 to %2", (StringRef, StringRef, StringRef)) |
| 71 | +ERROR(func_self_access_change,APIDigesterBreakage,"%0 has self access kind changing from %1 to %2", (StringRef, StringRef, StringRef)) |
72 | 72 |
|
73 |
| -ERROR(param_ownership_change,none,"%0 has %1 changing from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
| 73 | +ERROR(param_ownership_change,APIDigesterBreakage,"%0 has %1 changing from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
74 | 74 |
|
75 |
| -ERROR(type_witness_change,none,"%0 has type witness type for %1 changing from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
| 75 | +ERROR(type_witness_change,APIDigesterBreakage,"%0 has type witness type for %1 changing from %2 to %3", (StringRef, StringRef, StringRef, StringRef)) |
76 | 76 |
|
77 |
| -ERROR(decl_new_witness_table_entry,none,"%0 now requires%select{| no}1 new witness table entry", (StringRef, bool)) |
| 77 | +ERROR(decl_new_witness_table_entry,APIDigesterBreakage,"%0 now requires%select{| no}1 new witness table entry", (StringRef, bool)) |
78 | 78 |
|
79 |
| -ERROR(new_decl_without_intro,none,"%0 is a new API without @available attribute", (StringRef)) |
| 79 | +ERROR(new_decl_without_intro,APIDigesterBreakage,"%0 is a new API without @available attribute", (StringRef)) |
80 | 80 |
|
81 |
| -ERROR(objc_name_change,none,"%0 has ObjC name change from %1 to %2", (StringRef, StringRef, StringRef)) |
| 81 | +ERROR(objc_name_change,APIDigesterBreakage,"%0 has ObjC name change from %1 to %2", (StringRef, StringRef, StringRef)) |
82 | 82 |
|
83 |
| -ERROR(desig_init_added,none,"%0 has been added as a designated initializer to an open class", (StringRef)) |
| 83 | +ERROR(desig_init_added,APIDigesterBreakage,"%0 has been added as a designated initializer to an open class", (StringRef)) |
84 | 84 |
|
85 |
| -ERROR(added_invisible_designated_init,none,"%0 has new designated initializers that are not visible to clients", (StringRef)) |
| 85 | +ERROR(added_invisible_designated_init,APIDigesterBreakage,"%0 has new designated initializers that are not visible to clients", (StringRef)) |
86 | 86 |
|
87 |
| -ERROR(not_inheriting_convenience_inits,none,"%0 no longer inherits convenience inits from its superclass", (StringRef)) |
| 87 | +ERROR(not_inheriting_convenience_inits,APIDigesterBreakage,"%0 no longer inherits convenience inits from its superclass", (StringRef)) |
88 | 88 |
|
89 |
| -ERROR(enum_case_added,none,"%0 has been added as a new enum case", (StringRef)) |
| 89 | +ERROR(enum_case_added,APIDigesterBreakage,"%0 has been added as a new enum case", (StringRef)) |
90 | 90 |
|
91 | 91 | WARNING(cannot_read_allowlist,none,"cannot read breakage allowlist at '%0'", (StringRef))
|
92 | 92 |
|
|
0 commit comments