def err_attribute_zero_size : Error<"zero vector size">;
def err_attribute_size_too_large : Error<"vector size too large">;
def err_typecheck_vector_not_convertable : Error<
- "can't convert between vector values of different size (%0 and %1)">;
+ "cannot convert between vector values of different size (%0 and %1)">;
def err_typecheck_vector_not_convertable_non_scalar : Error<
- "can't convert between vector and non-scalar values (%0 and %1)">;
+ "cannot convert between vector and non-scalar values (%0 and %1)">;
def err_typecheck_vector_lengths_not_equal : Error<
"vector operands do not have the same number of elements (%0 and %1)">;
def err_ext_vector_component_exceeds_length : Error<
"parameter pack cannot have a default argument">;
def err_uninitialized_member_for_assign : Error<
"cannot define the implicit copy assignment operator for %0, because "
- "non-static %select{reference|const}1 member %2 can't use copy "
+ "non-static %select{reference|const}1 member %2 cannot use copy "
"assignment operator">;
def err_uninitialized_member_in_ctor : Error<
"%select{|implicit default |inheriting }0constructor for %1 must explicitly "
"candidate template ignored: substitution exceeded maximum template "
"instantiation depth">;
def note_ovl_candidate_underqualified : Note<
- "candidate template ignored: can't deduce a type for %0 that would "
+ "candidate template ignored: cannot deduce a type for %0 that would "
"make %2 equal %1">;
def note_ovl_candidate_substitution_failure : Note<
"candidate template ignored: substitution failure%0%1">;
def err_addr_ovl_not_func_ptrref : Error<
"address of overloaded function %0 cannot be converted to type %1">;
def err_addr_ovl_no_qualifier : Error<
- "can't form member pointer of type %0 without '&' and class name">;
+ "cannot form member pointer of type %0 without '&' and class name">;
// C++11 Literal Operators
def err_ovl_no_viable_literal_operator : Error<
def err_typecheck_arc_assign_self_class_method : Error<
"cannot assign to 'self' in a class method">;
def err_typecheck_arr_assign_enumeration : Error<
- "fast enumeration variables can't be modified in ARC by default; "
+ "fast enumeration variables cannot be modified in ARC by default; "
"declare the variable __strong to allow this">;
def warn_arc_retained_assign : Warning<
"assigning retained object to %select{weak|unsafe_unretained}0 "
"cannot catch an exception thrown with @throw in C++ in the non-unified "
"exception model">, InGroup<ObjCNonUnifiedException>;
def err_objc_object_catch : Error<
- "can't catch an Objective-C object by value">;
+ "cannot catch an Objective-C object by value">;
def err_incomplete_type_objc_at_encode : Error<
"'@encode' of incomplete type %0">;
def warn_objc_circular_container : Warning<
// -------------------------------------------------------------------------
sc = sc + sc2;
- sc = sc + uc2; // expected-error {{can't convert}}
- sc = uc + sc2; // expected-error {{can't convert}}
+ sc = sc + uc2; // expected-error {{cannot convert}}
+ sc = uc + sc2; // expected-error {{cannot convert}}
sc = sc + bc2;
sc = bc + sc2;
uc = uc + uc2;
- uc = sc + uc2; // expected-error {{can't convert}}
- uc = uc + sc2; // expected-error {{can't convert}}
+ uc = sc + uc2; // expected-error {{cannot convert}}
+ uc = uc + sc2; // expected-error {{cannot convert}}
uc = bc + uc2;
uc = uc + bc2;
bc = bc + sc2; // expected-error {{incompatible type}}
bc = sc + bc2; // expected-error {{incompatible type}}
- sc = sc + sc_scalar; // expected-error {{can't convert}}
- sc = sc + uc_scalar; // expected-error {{can't convert}}
- sc = sc_scalar + sc; // expected-error {{can't convert}}
- sc = uc_scalar + sc; // expected-error {{can't convert}}
- uc = uc + sc_scalar; // expected-error {{can't convert}}
- uc = uc + uc_scalar; // expected-error {{can't convert}}
- uc = sc_scalar + uc; // expected-error {{can't convert}}
- uc = uc_scalar + uc; // expected-error {{can't convert}}
+ sc = sc + sc_scalar; // expected-error {{cannot convert}}
+ sc = sc + uc_scalar; // expected-error {{cannot convert}}
+ sc = sc_scalar + sc; // expected-error {{cannot convert}}
+ sc = uc_scalar + sc; // expected-error {{cannot convert}}
+ uc = uc + sc_scalar; // expected-error {{cannot convert}}
+ uc = uc + uc_scalar; // expected-error {{cannot convert}}
+ uc = sc_scalar + uc; // expected-error {{cannot convert}}
+ uc = uc_scalar + uc; // expected-error {{cannot convert}}
ss = ss + ss2;
us = us + us2;
bl = bl + bl2; // expected-error {{invalid operands}}
fd = fd + fd2;
- fd = fd + ul2; // expected-error {{can't convert}}
- fd = sl + fd2; // expected-error {{can't convert}}
+ fd = fd + ul2; // expected-error {{cannot convert}}
+ fd = sl + fd2; // expected-error {{cannot convert}}
sc += sc2;
- sc += uc2; // expected-error {{can't convert}}
+ sc += uc2; // expected-error {{cannot convert}}
sc += bc2;
uc += uc2;
- uc += sc2; // expected-error {{can't convert}}
+ uc += sc2; // expected-error {{cannot convert}}
uc += bc2;
bc += bc2; // expected-error {{invalid operands}}
- bc += sc2; // expected-error {{can't convert}}
- bc += uc2; // expected-error {{can't convert}}
+ bc += sc2; // expected-error {{cannot convert}}
+ bc += uc2; // expected-error {{cannot convert}}
- sc += ss2; // expected-error {{can't convert}}
- sc += si2; // expected-error {{can't convert}}
- sc += sl2; // expected-error {{can't convert}}
- sc += fd2; // expected-error {{can't convert}}
+ sc += ss2; // expected-error {{cannot convert}}
+ sc += si2; // expected-error {{cannot convert}}
+ sc += sl2; // expected-error {{cannot convert}}
+ sc += fd2; // expected-error {{cannot convert}}
- sc += sc_scalar; // expected-error {{can't convert}}
- sc += uc_scalar; // expected-error {{can't convert}}
- uc += sc_scalar; // expected-error {{can't convert}}
- uc += uc_scalar; // expected-error {{can't convert}}
+ sc += sc_scalar; // expected-error {{cannot convert}}
+ sc += uc_scalar; // expected-error {{cannot convert}}
+ uc += sc_scalar; // expected-error {{cannot convert}}
+ uc += uc_scalar; // expected-error {{cannot convert}}
ss += ss2;
us += us2;
uc = uc - uc2;
bc = bc - bc2; // expected-error {{invalid operands}}
- sc = uc - sc2; // expected-error {{can't convert}}
+ sc = uc - sc2; // expected-error {{cannot convert}}
sc = sc - bc2;
uc = bc - uc2;
uc -= uc2;
bc -= bc2; // expected-error {{invalid operands}}
- sc -= uc2; // expected-error {{can't convert}}
+ sc -= uc2; // expected-error {{cannot convert}}
uc -= bc2;
- bc -= sc2; // expected-error {{can't convert}}
+ bc -= sc2; // expected-error {{cannot convert}}
ss -= ss2;
us -= us2;
uc = uc * uc2;
bc = bc * bc2; // expected-error {{invalid operands}}
- sc = uc * sc2; // expected-error {{can't convert}}
- sc = sc * bc2; // expected-error {{can't convert}}
- uc = bc * uc2; // expected-error {{can't convert}}
+ sc = uc * sc2; // expected-error {{cannot convert}}
+ sc = sc * bc2; // expected-error {{cannot convert}}
+ uc = bc * uc2; // expected-error {{cannot convert}}
sc *= sc2;
uc *= uc2;
bc *= bc2; // expected-error {{invalid operands}}
- sc *= uc2; // expected-error {{can't convert}}
- uc *= bc2; // expected-error {{can't convert}}
- bc *= sc2; // expected-error {{can't convert}}
+ sc *= uc2; // expected-error {{cannot convert}}
+ uc *= bc2; // expected-error {{cannot convert}}
+ bc *= sc2; // expected-error {{cannot convert}}
ss *= ss2;
us *= us2;
uc = uc / uc2;
bc = bc / bc2; // expected-error {{invalid operands}}
- sc = uc / sc2; // expected-error {{can't convert}}
- sc = sc / bc2; // expected-error {{can't convert}}
- uc = bc / uc2; // expected-error {{can't convert}}
+ sc = uc / sc2; // expected-error {{cannot convert}}
+ sc = sc / bc2; // expected-error {{cannot convert}}
+ uc = bc / uc2; // expected-error {{cannot convert}}
sc /= sc2;
uc /= uc2;
bc /= bc2; // expected-error {{invalid operands}}
- sc /= uc2; // expected-error {{can't convert}}
- uc /= bc2; // expected-error {{can't convert}}
- bc /= sc2; // expected-error {{can't convert}}
+ sc /= uc2; // expected-error {{cannot convert}}
+ uc /= bc2; // expected-error {{cannot convert}}
+ bc /= sc2; // expected-error {{cannot convert}}
ss /= ss2;
us /= us2;
uc = uc % uc2;
bc = bc % bc2; // expected-error {{invalid operands}}
- sc = uc % sc2; // expected-error {{can't convert}}
- sc = sc % bc2; // expected-error {{can't convert}}
- uc = bc % uc2; // expected-error {{can't convert}}
+ sc = uc % sc2; // expected-error {{cannot convert}}
+ sc = sc % bc2; // expected-error {{cannot convert}}
+ uc = bc % uc2; // expected-error {{cannot convert}}
sc %= sc2;
uc %= uc2;
bc %= bc2; // expected-error {{invalid operands}}
- sc %= uc2; // expected-error {{can't convert}}
- uc %= bc2; // expected-error {{can't convert}}
- bc %= sc2; // expected-error {{can't convert}}
+ sc %= uc2; // expected-error {{cannot convert}}
+ uc %= bc2; // expected-error {{cannot convert}}
+ bc %= sc2; // expected-error {{cannot convert}}
ss %= ss2;
us %= us2;
// -------------------------------------------------------------------------
sc = sc & sc2;
- sc = sc & uc2; // expected-error {{can't convert}}
- sc = uc & sc2; // expected-error {{can't convert}}
+ sc = sc & uc2; // expected-error {{cannot convert}}
+ sc = uc & sc2; // expected-error {{cannot convert}}
sc = sc & bc2;
sc = bc & sc2;
uc = uc & uc2;
- uc = sc & uc2; // expected-error {{can't convert}}
- uc = uc & sc2; // expected-error {{can't convert}}
+ uc = sc & uc2; // expected-error {{cannot convert}}
+ uc = uc & sc2; // expected-error {{cannot convert}}
uc = bc & uc2;
uc = uc & bc2;
fd = fd & ul2; // expected-error {{invalid operands}}
sc &= sc2;
- sc &= uc2; // expected-error {{can't convert}}
+ sc &= uc2; // expected-error {{cannot convert}}
sc &= bc2;
uc &= uc2;
- uc &= sc2; // expected-error {{can't convert}}
+ uc &= sc2; // expected-error {{cannot convert}}
uc &= bc2;
bc &= bc2;
- bc &= sc2; // expected-error {{can't convert}}
- bc &= uc2; // expected-error {{can't convert}}
+ bc &= sc2; // expected-error {{cannot convert}}
+ bc &= uc2; // expected-error {{cannot convert}}
- sc &= ss2; // expected-error {{can't convert}}
- sc &= si2; // expected-error {{can't convert}}
- sc &= sl2; // expected-error {{can't convert}}
+ sc &= ss2; // expected-error {{cannot convert}}
+ sc &= si2; // expected-error {{cannot convert}}
+ sc &= sl2; // expected-error {{cannot convert}}
sc &= fd2; // expected-error {{invalid operands}}
- us &= bc2; // expected-error {{can't convert}}
- ui &= bc2; // expected-error {{can't convert}}
- ul &= bc2; // expected-error {{can't convert}}
+ us &= bc2; // expected-error {{cannot convert}}
+ ui &= bc2; // expected-error {{cannot convert}}
+ ul &= bc2; // expected-error {{cannot convert}}
fd &= bc2; // expected-error {{invalid operands}}
ss &= ss2;
// -------------------------------------------------------------------------
sc = sc | sc2;
- sc = sc | uc2; // expected-error {{can't convert}}
+ sc = sc | uc2; // expected-error {{cannot convert}}
sc = sc | bc2;
uc = uc | uc2;
- uc = sc | uc2; // expected-error {{can't convert}}
+ uc = sc | uc2; // expected-error {{cannot convert}}
uc = bc | uc2;
bc = bc | bc2;
// -------------------------------------------------------------------------
sc = sc ^ sc2;
- sc = sc ^ uc2; // expected-error {{can't convert}}
+ sc = sc ^ uc2; // expected-error {{cannot convert}}
sc = sc ^ bc2;
uc = uc ^ uc2;
- uc = sc ^ uc2; // expected-error {{can't convert}}
+ uc = sc ^ uc2; // expected-error {{cannot convert}}
uc = bc ^ uc2;
bc = bc ^ bc2;
(void)(uc == uc2);
(void)(bc == bc2);
- (void)(sc == uc); // expected-error {{can't convert}}
+ (void)(sc == uc); // expected-error {{cannot convert}}
(void)(sc == bc);
- (void)(uc == sc); // expected-error {{can't convert}}
+ (void)(uc == sc); // expected-error {{cannot convert}}
(void)(uc == bc);
(void)(bc == sc);
(void)(bl == bl2);
(void)(fd == fd2);
- (void)(fd == ul); // expected-error {{can't convert}}
- (void)(ul == fd); // expected-error {{can't convert}}
+ (void)(fd == ul); // expected-error {{cannot convert}}
+ (void)(ul == fd); // expected-error {{cannot convert}}
// -------------------------------------------------------------------------
// Test that == rules apply to != too.
(void)(uc != uc2);
(void)(bc != bc2);
- (void)(sc != uc); // expected-error {{can't convert}}
+ (void)(sc != uc); // expected-error {{cannot convert}}
(void)(sc != bc);
(void)(ss != ss2);
(void)(uc <= uc2);
(void)(bc <= bc2);
- (void)(sc <= uc); // expected-error {{can't convert}}
+ (void)(sc <= uc); // expected-error {{cannot convert}}
(void)(sc <= bc);
(void)(ss <= ss2);
(void)(uc >= uc2);
(void)(bc >= bc2);
- (void)(sc >= uc); // expected-error {{can't convert}}
+ (void)(sc >= uc); // expected-error {{cannot convert}}
(void)(sc >= bc);
(void)(ss >= ss2);
(void)(uc < uc2);
(void)(bc < bc2);
- (void)(sc < uc); // expected-error {{can't convert}}
+ (void)(sc < uc); // expected-error {{cannot convert}}
(void)(sc < bc);
(void)(ss < ss2);
(void)(uc > uc2);
(void)(bc > bc2);
- (void)(sc > uc); // expected-error {{can't convert}}
+ (void)(sc > uc); // expected-error {{cannot convert}}
(void)(sc > bc);
(void)(ss > ss2);