@@ -328,7 +328,7 @@ static bool shouldTrackFirstArgument(const FunctionDecl *FD) {
328
328
// We assuments that a normal assingment operator always returns *this, that is,
329
329
// an lvalue reference that is the same type as the implicit object parameter
330
330
// (or the LHS for a non-member operator$=).
331
- static bool isNormalAsisgnmentOperator (const FunctionDecl *FD) {
331
+ static bool isNormalAssignmentOperator (const FunctionDecl *FD) {
332
332
OverloadedOperatorKind OO = FD->getDeclName ().getCXXOverloadedOperator ();
333
333
if (OO == OO_Equal || isCompoundAssignmentOperator (OO)) {
334
334
QualType RetT = FD->getReturnType ();
@@ -362,7 +362,7 @@ static bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD) {
362
362
return true ;
363
363
}
364
364
365
- return isNormalAsisgnmentOperator (FD);
365
+ return isNormalAssignmentOperator (FD);
366
366
}
367
367
368
368
// Visit lifetimebound or gsl-pointer arguments.
@@ -940,10 +940,10 @@ static bool pathOnlyHandlesGslPointer(IndirectLocalPath &Path) {
940
940
return false ;
941
941
}
942
942
943
- static bool isAssginmentOperatorLifetimeBound (CXXMethodDecl *CMD) {
943
+ static bool isAssignmentOperatorLifetimeBound (CXXMethodDecl *CMD) {
944
944
if (!CMD)
945
945
return false ;
946
- return isNormalAsisgnmentOperator (CMD) && CMD->param_size () == 1 &&
946
+ return isNormalAssignmentOperator (CMD) && CMD->param_size () == 1 &&
947
947
CMD->getParamDecl (0 )->hasAttr <LifetimeBoundAttr>();
948
948
}
949
949
@@ -953,7 +953,7 @@ static bool shouldRunGSLAssignmentAnalysis(const Sema &SemaRef,
953
953
diag::warn_dangling_lifetime_pointer_assignment, SourceLocation ());
954
954
return (EnableGSLAssignmentWarnings &&
955
955
(isRecordWithAttr<PointerAttr>(Entity.LHS ->getType ()) ||
956
- isAssginmentOperatorLifetimeBound (Entity.AssignmentOperator )));
956
+ isAssignmentOperatorLifetimeBound (Entity.AssignmentOperator )));
957
957
}
958
958
959
959
static void checkExprLifetimeImpl (Sema &SemaRef,
0 commit comments