@@ -982,22 +982,21 @@ def err_ptrauth_indirect_goto_addrlabel_arithmetic : Error<
982982
983983// __ptrauth qualifier
984984def err_ptrauth_qualifier_invalid : Error<
985- "%select{return types |parameter types|properties }1 may not be qualified with __ptrauth; type is %0">;
985+ "%select{return type |parameter type|property }1 may not be qualified with ' __ptrauth' ; type is %0">;
986986def err_ptrauth_qualifier_cast : Error<
987- "cast types may not be qualified with __ptrauth; type is %0">;
987+ "cannot cast to '__ptrauth'- qualified type %0">;
988988def err_ptrauth_qualifier_nonpointer : Error<
989- "__ptrauth qualifier may only be applied to pointer types; type here is %0 ">;
989+ "' __ptrauth' qualifier only applies to pointer types; %0 is invalid ">;
990990def err_ptrauth_qualifier_redundant : Error<
991991 "type %0 is already %1-qualified">;
992992def err_ptrauth_qualifier_bad_arg_count : Error<
993- "%0 qualifier must take between 1 and 3 arguments">;
993+ "'__ptrauth' qualifier must take between 1 and 3 arguments">;
994994def err_ptrauth_arg_not_ice : Error<
995- "argument to __ptrauth must be an integer constant expression">;
995+ "argument to ' __ptrauth' must be an integer constant expression">;
996996def err_ptrauth_address_discrimination_invalid : Error<
997- "address discrimination flag for __ptrauth must be 0 or 1; value is %0 ">;
997+ "invalid address discrimination flag '%0'; ' __ptrauth' requires '0' or '1' ">;
998998def err_ptrauth_extra_discriminator_invalid : Error<
999- "extra discriminator for __ptrauth must be between "
1000- "0 and %1; value is %0">;
999+ "invalid extra discriminator flag '%0'; '__ptrauth' requires a value between '0' and '%1'">;
10011000
10021001/// main()
10031002// static main() is not an error in C, just in C++.
@@ -3963,7 +3962,7 @@ def note_cannot_use_trivial_abi_reason : Note<
39633962 "it is polymorphic|"
39643963 "it has a base of a non-trivial class type|it has a virtual base|"
39653964 "it has a __weak field|it has a field of a non-trivial class type|"
3966- "it has an address-discriminated __ptrauth field}1">;
3965+ "it has an address-discriminated ' __ptrauth' field}1">;
39673966
39683967// Availability attribute
39693968def warn_availability_unknown_platform : Warning<
@@ -5039,8 +5038,8 @@ def note_ovl_candidate_bad_ownership : Note<
50395038 "__autoreleasing}5 ownership">;
50405039def note_ovl_candidate_bad_ptrauth : Note<
50415040 "candidate %sub{select_ovl_candidate_kind}0,1,2 not viable: "
5042- "%ordinal8 argument (%3) has %select{no ptrauth |%5}4 qualifier,"
5043- " but parameter has %select{no ptrauth |%7}6 qualifier">;
5041+ "%ordinal8 argument (%3) has %select{no '__ptrauth' |%5}4 qualifier,"
5042+ " but parameter has %select{no '__ptrauth' |%7}6 qualifier">;
50445043def note_ovl_candidate_bad_cvr_this : Note<
50455044 "candidate %sub{select_ovl_candidate_kind}0,1,2 not viable: "
50465045 "'this' argument has type %3, but method is not marked "
@@ -6136,7 +6135,7 @@ def note_deleted_special_member_class_subobject : Note<
61366135 "%select{default|corresponding|default|default|default}4 constructor}0|"
61376136 "destructor}5"
61386137 "%select{||s||}4"
6139- "|is an ObjC pointer|has an address-discriminated ptrauth qualifier}6">;
6138+ "|is an ObjC pointer|has an address-discriminated '__ptrauth' qualifier}6">;
61406139def note_default_constructed_field
61416140 : Note<"default constructed field %0 declared here">;
61426141def note_deleted_default_ctor_uninit_field : Note<
@@ -8991,7 +8990,7 @@ def err_typecheck_incompatible_ptrauth : Error<
89918990 "|%diff{sending $ to parameter of type $|"
89928991 "sending to parameter of different type}0,1"
89938992 "|%diff{casting $ to type $|casting between types}0,1}2"
8994- " changes pointer- authentication of pointee type">;
8993+ " changes pointer authentication of pointee type">;
89958994def err_typecheck_comparison_of_distinct_blocks : Error<
89968995 "comparison of distinct block types%diff{ ($ and $)|}0,1">;
89978996
@@ -9399,7 +9398,7 @@ def ext_typecheck_cond_pointer_integer_mismatch : ExtWarn<
93999398 "%diff{ ($ and $)|}0,1">,
94009399 InGroup<DiagGroup<"conditional-type-mismatch">>;
94019400def err_typecheck_cond_incompatible_ptrauth : Error<
9402- "__ptrauth qualification mismatch%diff{ ($ and $)|}0,1">;
9401+ "' __ptrauth' qualification mismatch%diff{ ($ and $)|}0,1">;
94039402def err_typecheck_choose_expr_requires_constant : Error<
94049403 "'__builtin_choose_expr' requires a constant expression">;
94059404def warn_unused_expr : Warning<"expression result unused">,
0 commit comments