Lines Matching refs:New

265     const FunctionProtoType *New, SourceLocation NewLoc,
290 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument
297 OverloadedOperatorKind OO = New->getDeclName().getCXXOverloadedOperator(); in CheckEquivalentExceptionSpec()
312 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckEquivalentExceptionSpec()
313 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); in CheckEquivalentExceptionSpec()
322 New->getType()->getAs<FunctionProtoType>(), New->getLocation(), in CheckEquivalentExceptionSpec()
330 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec()
331 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch) in CheckEquivalentExceptionSpec()
344 const auto *NewProto = New->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
359 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
382 New->setInvalidDecl(); in CheckEquivalentExceptionSpec()
386 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
394 } else if (New->isReplaceableGlobalAllocationFunction() && in CheckEquivalentExceptionSpec()
461 if (TypeSourceInfo *TSInfo = New->getTypeSourceInfo()) { in CheckEquivalentExceptionSpec()
471 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
472 << New << OS.str(); in CheckEquivalentExceptionSpec()
474 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
475 << New << OS.str() in CheckEquivalentExceptionSpec()
487 const FunctionProtoType *New, SourceLocation NewLoc) { in CheckEquivalentExceptionSpec() argument
496 Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec()
513 const FunctionProtoType *New, SourceLocation NewLoc, in CheckEquivalentExceptionSpecImpl() argument
526 New = S.ResolveExceptionSpec(NewLoc, New); in CheckEquivalentExceptionSpecImpl()
527 if (!New) in CheckEquivalentExceptionSpecImpl()
550 ExceptionSpecificationType NewEST = New->getExceptionSpecType(); in CheckEquivalentExceptionSpecImpl()
557 CanThrowResult NewCanThrow = New->canThrow(); in CheckEquivalentExceptionSpecImpl()
583 New->getNoexceptExpr()->Profile(NewFSN, S.Context, true); in CheckEquivalentExceptionSpecImpl()
598 for (const auto &I : New->exceptions()) { in CheckEquivalentExceptionSpecImpl()
618 WithExceptions = New; in CheckEquivalentExceptionSpecImpl()
665 const FunctionProtoType *New, in CheckEquivalentExceptionSpec() argument
670 New, NewLoc); in CheckEquivalentExceptionSpec()
949 bool Sema::CheckOverridingFunctionExceptionSpec(const CXXMethodDecl *New, in CheckOverridingFunctionExceptionSpec() argument
953 if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() == in CheckOverridingFunctionExceptionSpec()
959 if (isa<CXXDestructorDecl>(New) && New->getParent()->isDependentType()) in CheckOverridingFunctionExceptionSpec()
966 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckOverridingFunctionExceptionSpec()
967 DelayedOverridingExceptionSpecChecks.push_back({New, Old}); in CheckOverridingFunctionExceptionSpec()
980 New->getType()->castAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
981 New->hasCXXExplicitFunctionObjectParameter(), New->getLocation()); in CheckOverridingFunctionExceptionSpec()