Lines 9213-9222
void Sema::DiagnoseNontrivial(const RecordType* T, CXXSpecialMember member) {
Link Here
|
9213 |
|
9213 |
|
9214 |
case CXXCopyAssignment: |
9214 |
case CXXCopyAssignment: |
9215 |
if (RD->hasUserDeclaredCopyAssignment()) { |
9215 |
if (RD->hasUserDeclaredCopyAssignment()) { |
9216 |
// FIXME: this should use the location of the copy |
9216 |
SourceLocation AssignLoc = |
9217 |
// assignment, not the type. |
9217 |
RD->getCopyAssignmentOperator(0)->getLocation(); |
9218 |
SourceLocation TyLoc = RD->getLocStart(); |
9218 |
Diag(AssignLoc, diag::note_nontrivial_user_defined) << QT << member; |
9219 |
Diag(TyLoc, diag::note_nontrivial_user_defined) << QT << member; |
|
|
9220 |
return; |
9219 |
return; |
9221 |
} |
9220 |
} |
9222 |
break; |
9221 |
break; |
9223 |
- |
|
|