@@ -622,10 +622,11 @@ def err_module_odr_violation_mismatch_decl : Error<
622
622
"%select{end of class|public access specifier|private access specifier|"
623
623
"protected access specifier|static assert|field|method|type alias|typedef|"
624
624
"data member|friend declaration|function template|method|property}3">;
625
- def note_module_odr_violation_mismatch_decl : Note<"but in '%0' found "
625
+ def note_module_odr_violation_mismatch_decl : Note<
626
+ "but in %select{'%1'|definition here}0 found "
626
627
"%select{end of class|public access specifier|private access specifier|"
627
628
"protected access specifier|static assert|field|method|type alias|typedef|"
628
- "data member|friend declaration|function template|method|property}1 ">;
629
+ "data member|friend declaration|function template|method|property}2 ">;
629
630
630
631
def err_module_odr_violation_record : Error<
631
632
"%q0 has different definitions in different modules; first difference is "
@@ -843,11 +844,12 @@ def err_module_odr_violation_referenced_protocols : Error <
843
844
"%4 referenced %plural{1:protocol|:protocols}4|"
844
845
"%ordinal4 referenced protocol with name %5"
845
846
"}3">;
846
- def note_module_odr_violation_referenced_protocols : Note <"but in '%0' found "
847
+ def note_module_odr_violation_referenced_protocols : Note <
848
+ "but in %select{'%1'|definition here}0 found "
847
849
"%select{"
848
- "%2 referenced %plural{1:protocol|:protocols}2 |"
849
- "%ordinal2 referenced protocol with different name %3 "
850
- "}1 ">;
850
+ "%3 referenced %plural{1:protocol|:protocols}3 |"
851
+ "%ordinal3 referenced protocol with different name %4 "
852
+ "}2 ">;
851
853
852
854
def err_module_odr_violation_objc_method : Error<
853
855
"%q0 has different definitions in different modules; first difference is "
@@ -860,15 +862,16 @@ def err_module_odr_violation_objc_method : Error<
860
862
"%select{regular|direct}5 method %4|"
861
863
"method %4"
862
864
"}3">;
863
- def note_module_odr_violation_objc_method : Note<"but in '%0' found "
865
+ def note_module_odr_violation_objc_method : Note<
866
+ "but in %select{'%1'|definition here}0 found "
864
867
"%select{"
865
- "method %2 with different return type %3 |"
866
- "method %2 as %select{class|instance}3 method|"
867
- "%select{no|'required'|'optional'}2 method control|"
868
- "method %2 with %select{no designated initializer|designated initializer}3 |"
869
- "%select{regular|direct}3 method %2 |"
870
- "different method %2 "
871
- "}1 ">;
868
+ "method %3 with different return type %4 |"
869
+ "method %3 as %select{class|instance}4 method|"
870
+ "%select{no|'required'|'optional'}3 method control|"
871
+ "method %3 with %select{no designated initializer|designated initializer}4 |"
872
+ "%select{regular|direct}4 method %3 |"
873
+ "different method %3 "
874
+ "}2 ">;
872
875
873
876
def err_module_odr_violation_method_params : Error<
874
877
"%q0 has different definitions in different modules; first difference is "
@@ -881,15 +884,16 @@ def err_module_odr_violation_method_params : Error<
881
884
"%select{method %5|constructor|destructor}4 "
882
885
"with %ordinal6 parameter named %7"
883
886
"}3">;
884
- def note_module_odr_violation_method_params : Note<"but in '%0' found "
887
+ def note_module_odr_violation_method_params : Note<
888
+ "but in %select{'%1'|definition here}0 found "
885
889
"%select{"
886
- "%select{method %3 |constructor|destructor}2 "
887
- "that has %4 parameter%s4 |"
888
- "%select{method %3 |constructor|destructor}2 "
889
- "with %ordinal4 parameter of type %5 %select{| decayed from %7}6 |"
890
- "%select{method %3 |constructor|destructor}2 "
891
- "with %ordinal4 parameter named %5 "
892
- "}1 ">;
890
+ "%select{method %4 |constructor|destructor}3 "
891
+ "that has %5 parameter%s5 |"
892
+ "%select{method %4 |constructor|destructor}3 "
893
+ "with %ordinal5 parameter of type %6 %select{| decayed from %8}7 |"
894
+ "%select{method %4 |constructor|destructor}3 "
895
+ "with %ordinal5 parameter named %6 "
896
+ "}2 ">;
893
897
894
898
def err_module_odr_violation_objc_property : Error<
895
899
"%q0 has different definitions in different modules; first difference is "
@@ -903,15 +907,15 @@ def err_module_odr_violation_objc_property : Error<
903
907
"unsafe_unretained|nullability|null_resettable|class|direct}5' attribute"
904
908
"}3">;
905
909
def note_module_odr_violation_objc_property : Note<
906
- "but in '%0' found "
910
+ "but in %select{'%1'|definition here}0 found "
907
911
"%select{"
908
- "property %2 |"
909
- "property %2 with type %3 |"
910
- "%select{no|'required'|'optional'}2 property control|"
911
- "property %2 with different '%select{none|readonly|getter|assign|"
912
+ "property %3 |"
913
+ "property %3 with type %4 |"
914
+ "%select{no|'required'|'optional'}3 property control|"
915
+ "property %3 with different '%select{none|readonly|getter|assign|"
912
916
"readwrite|retain|copy|nonatomic|setter|atomic|weak|strong|"
913
- "unsafe_unretained|nullability|null_resettable|class|direct}3 ' attribute"
914
- "}1 ">;
917
+ "unsafe_unretained|nullability|null_resettable|class|direct}4 ' attribute"
918
+ "}2 ">;
915
919
916
920
def err_module_odr_violation_mismatch_decl_unknown : Error<
917
921
"%q0 %select{with definition in module '%2'|defined here}1 has different "
@@ -920,11 +924,11 @@ def err_module_odr_violation_mismatch_decl_unknown : Error<
920
924
"friend declaration|function template|method|"
921
925
"property|unexpected decl}3">;
922
926
def note_module_odr_violation_mismatch_decl_unknown : Note<
923
- "but in '%0' found "
927
+ "but in %select{'%1'|definition here}0 found "
924
928
"%select{||||different static assert|different field|different method|"
925
929
"different type alias|different typedef|different data member|"
926
930
"different friend declaration|different function template|different method|"
927
- "different property|another unexpected decl}1 ">;
931
+ "different property|another unexpected decl}2 ">;
928
932
929
933
930
934
def remark_sanitize_address_insert_extra_padding_accepted : Remark<
0 commit comments