@@ -722,7 +722,7 @@ ERROR(cannot_convert_type_to_keypath_subscript_index,none,
722
722
(Type))
723
723
GROUPED_WARNING(
724
724
expr_deprecated_writable_keypath,
725
- writable_keypath_to_readonly_property_deprecated , Deprecation,
725
+ DeprecatedWritableKeypathToReadonlyProperty , Deprecation,
726
726
" forming a writable keypath to property %0 that is read-only in this "
727
727
" context is deprecated and will be removed in a future release" ,
728
728
(const ValueDecl *))
@@ -776,12 +776,12 @@ WARNING(selector_literal_invalid,none,
776
776
WARNING(selector_literal_undeclared,none,
777
777
" no method declared with Objective-C selector %0" , (ObjCSelector))
778
778
GROUPED_WARNING(
779
- selector_literal_deprecated, selector_string_literal_deprecated , Deprecation,
779
+ selector_literal_deprecated, DeprecatedSelectorStringLiteral , Deprecation,
780
780
" use of string literal for Objective-C selectors is deprecated; "
781
781
" use '#selector' or explicitly construct a 'Selector'" ,
782
782
())
783
783
GROUPED_WARNING(
784
- selector_literal_deprecated_suggest, selector_string_literal_deprecated ,
784
+ selector_literal_deprecated_suggest, DeprecatedSelectorStringLiteral ,
785
785
Deprecation,
786
786
" use of string literal for Objective-C selectors is deprecated; "
787
787
" use '#selector' instead" ,
@@ -1040,7 +1040,7 @@ ERROR(invalid_redecl_implicit,none,
1040
1040
" %select{%0|implementation for protocol requirement}1 %2" ,
1041
1041
(DescriptiveDeclKind, bool , const ValueDecl *))
1042
1042
GROUPED_WARNING(
1043
- invalid_redecl_swift5_warning, invalid_redecl_swift5_deprecated ,
1043
+ invalid_redecl_swift5_warning, DeprecatedInvalidRedeclSwift5 ,
1044
1044
Deprecation,
1045
1045
" redeclaration of %0 is deprecated and will be an error in Swift 5" ,
1046
1046
(const ValueDecl *))
@@ -1189,7 +1189,7 @@ WARNING(implementation_only_requires_library_evolution,none,
1189
1189
" for %0 may lead to instability during execution" ,
1190
1190
(Identifier))
1191
1191
GROUPED_WARNING(
1192
- implementation_only_deprecated, attr_implementationOnly_deprecated , none,
1192
+ implementation_only_deprecated, DeprecatedAttrImplementationOnly , none,
1193
1193
" '@_implementationOnly' is deprecated, use 'internal import' instead" , ())
1194
1194
1195
1195
ERROR(module_allowable_client_violation,none,
@@ -1605,7 +1605,7 @@ ERROR(closure_bad_param,none,
1605
1605
" accept a closure" , (Type, bool ))
1606
1606
GROUPED_WARNING(
1607
1607
unlabeled_trailing_closure_deprecated,
1608
- unlabeled_trailing_closure_deprecated , Deprecation,
1608
+ DeprecatedUnlabeledTrailingClosure , Deprecation,
1609
1609
" backward matching of the unlabeled trailing closure is deprecated; label "
1610
1610
" the argument with %0 to suppress this warning" ,
1611
1611
(Identifier))
@@ -1777,7 +1777,7 @@ ERROR(swift_native_objc_runtime_base_not_on_root_class,none,
1777
1777
1778
1778
GROUPED_WARNING(
1779
1779
objc_implementation_early_spelling_deprecated,
1780
- attr_objcImplementation_deprecated , none,
1780
+ DeprecatedAttrObjcImplementation , none,
1781
1781
" '@_objcImplementation' is deprecated; use '@implementation' instead" , ())
1782
1782
ERROR(attr_objc_implementation_must_be_unconditional,none,
1783
1783
" only unconditional extensions can implement an Objective-C '@interface'" ,
@@ -3148,7 +3148,7 @@ ERROR(witness_unavailable,none,
3148
3148
(const ValueDecl *, const ProtocolDecl *, StringRef))
3149
3149
3150
3150
GROUPED_WARNING(
3151
- witness_deprecated, witness_deprecated , none,
3151
+ witness_deprecated, DeprecatedDeclaration , none,
3152
3152
" deprecated default implementation is used to satisfy %kind0 required by "
3153
3153
" protocol %1%select{|: %2}2" ,
3154
3154
(const ValueDecl *, Identifier, StringRef))
@@ -3516,7 +3516,7 @@ WARNING(duplicate_anyobject_class_inheritance,none,
3516
3516
ERROR(inheritance_from_protocol_with_superclass,none,
3517
3517
" inheritance from class-constrained protocol composition type %0" , (Type))
3518
3518
GROUPED_WARNING(anyobject_class_inheritance_deprecated,
3519
- anyobject_class_inheritance_deprecated , Deprecation,
3519
+ DeprecatedAnyObjectClassInheritance , Deprecation,
3520
3520
" using 'class' keyword to define a class-constrained protocol "
3521
3521
" is deprecated; use 'AnyObject' instead" ,
3522
3522
())
@@ -4781,7 +4781,7 @@ NOTE(fix_unqualified_access_top_level_multi,none,
4781
4781
4782
4782
GROUPED_WARNING(
4783
4783
warn_deprecated_conditional_conformance_outer_access,
4784
- conditional_conformance_outer_access_deprecated , Deprecation,
4784
+ DeprecatedConditionalConformanceOuterAccess , Deprecation,
4785
4785
" use of %0 as reference to %1 in %kind2 will change in future versions "
4786
4786
" of Swift to reference %3 in %kind4 which comes via a conditional "
4787
4787
" conformance" ,
@@ -5179,7 +5179,7 @@ ERROR(tuple_pattern_in_non_tuple_context,none,
5179
5179
" tuple pattern cannot match values of the non-tuple type %0" , (Type))
5180
5180
GROUPED_WARNING(
5181
5181
found_one_pattern_for_several_associated_values,
5182
- one_pattern_for_several_associated_values_deprecated , Deprecation,
5182
+ DeprecatedMatchingMultipleAssociatedValuesAsTuple , Deprecation,
5183
5183
" enum case '%0' has %1 associated values; matching them as a tuple "
5184
5184
" is deprecated" ,
5185
5185
(StringRef, unsigned ))
@@ -6090,7 +6090,7 @@ WARNING(implicitly_unwrapped_optional_in_illegal_position_interpreted_as_optiona
6090
6090
6091
6091
GROUPED_WARNING(
6092
6092
implicitly_unwrapped_optional_deprecated_in_this_position,
6093
- implicitly_unwrapped_optional_deprecated , Deprecation,
6093
+ DeprecatedImplicitlyUnwrappedOptional , Deprecation,
6094
6094
" using '!' here is deprecated and will be removed in a future release" , ())
6095
6095
6096
6096
ERROR(implicitly_unwrapped_optional_in_illegal_position,none,
@@ -6675,14 +6675,14 @@ NOTE(availability_obsoleted, none,
6675
6675
" %0 was obsoleted in %1 %2" ,
6676
6676
(const ValueDecl *, StringRef, llvm::VersionTuple))
6677
6677
6678
- GROUPED_WARNING(availability_deprecated, availability_deprecated , Deprecation,
6678
+ GROUPED_WARNING(availability_deprecated, DeprecatedDeclaration , Deprecation,
6679
6679
" %0 %select{is|%select{is|was}3}1 "
6680
6680
" deprecated%select{| in %2%select{| %4}3}1%select{|: %5}5" ,
6681
6681
(const ValueDecl *, bool , StringRef, bool , llvm::VersionTuple,
6682
6682
StringRef))
6683
6683
6684
6684
GROUPED_WARNING(
6685
- availability_deprecated_rename, availability_deprecated , Deprecation,
6685
+ availability_deprecated_rename, DeprecatedDeclaration , Deprecation,
6686
6686
" %0 %select{is|%select{is|was}3}1 "
6687
6687
" deprecated%select{| in %2%select{| %4}3}1: "
6688
6688
" %select{renamed to|replaced by}5%" REPLACEMENT_DECL_KIND_SELECT " 6 "
@@ -6861,7 +6861,7 @@ NOTE(conformance_availability_obsoleted, none,
6861
6861
(Type, Type, StringRef, llvm::VersionTuple))
6862
6862
6863
6863
GROUPED_WARNING(conformance_availability_deprecated,
6864
- conformance_availability_deprecated , Deprecation,
6864
+ DeprecatedDeclaration , Deprecation,
6865
6865
" conformance of %0 to %1 %select{is|%select{is|was}4}2 "
6866
6866
" deprecated%select{| in %3%select{| %5}4}2%select{|: %6}6" ,
6867
6867
(Type, Type, bool , StringRef, bool , llvm::VersionTuple,
@@ -7132,14 +7132,14 @@ ERROR(override_nsobject_hash_error,none,
7132
7132
" did you mean to override 'NSObject.hash'?" , ())
7133
7133
7134
7134
GROUPED_WARNING(
7135
- hashvalue_implementation, hashvalue_implementation_deprecated , Deprecation,
7135
+ hashvalue_implementation, DeprecatedHashValueImplementation , Deprecation,
7136
7136
" 'Hashable.hashValue' is deprecated as a protocol requirement; "
7137
7137
" conform type %0 to 'Hashable' by implementing 'hash(into:)' instead" ,
7138
7138
(Type))
7139
7139
7140
7140
GROUPED_WARNING(
7141
7141
executor_enqueue_deprecated_owned_job_implementation,
7142
- executor_enqueue_owned_job_implementation_deprecated , Deprecation,
7142
+ DeprecatedExecutorEnqueueOwnedJobImplementation , Deprecation,
7143
7143
" 'Executor.enqueue(Job)' is deprecated as a protocol requirement; "
7144
7144
" conform type %0 to 'Executor' by implementing 'func enqueue(ExecutorJob)' "
7145
7145
" instead" ,
@@ -7261,14 +7261,14 @@ ERROR(property_wrapper_type_not_usable_from_inline,none,
7261
7261
" must be '@usableFromInline' or public" ,
7262
7262
(bool , bool ))
7263
7263
GROUPED_WARNING(
7264
- property_wrapper_wrapperValue, property_wrapper_wrapperValue_deprecated ,
7264
+ property_wrapper_wrapperValue, DeprecatedPropertyWrapperWrapperValue ,
7265
7265
Deprecation,
7266
7266
" property wrapper's 'wrapperValue' property should be renamed to "
7267
7267
" 'projectedValue'; use of 'wrapperValue' is deprecated" ,
7268
7268
())
7269
7269
GROUPED_WARNING(
7270
7270
property_wrapper_init_initialValue,
7271
- property_wrapper_init_initialValue_deprecated , Deprecation,
7271
+ DeprecatedPropertyWrapperInitInitialValue , Deprecation,
7272
7272
" property wrapper's 'init(initialValue:)' should be renamed "
7273
7273
" to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated" ,
7274
7274
())
@@ -7396,7 +7396,7 @@ ERROR(result_builder_buildpartialblock_accumulated_not_accessible,none,
7396
7396
// ------------------------------------------------------------------------------
7397
7397
7398
7398
GROUPED_WARNING(warn_reordering_tuple_shuffle_deprecated,
7399
- reordering_tuple_shuffle_deprecated , Deprecation,
7399
+ DeprecatedReorderingTupleShuffle , Deprecation,
7400
7400
" expression shuffles the elements of this tuple; "
7401
7401
" this behavior is deprecated" ,
7402
7402
())
0 commit comments