Lines Matching refs:New

273     const FunctionProtoType *New, SourceLocation NewLoc,
298 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument
305 OverloadedOperatorKind OO = New->getDeclName().getCXXOverloadedOperator(); in CheckEquivalentExceptionSpec()
320 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckEquivalentExceptionSpec()
321 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); in CheckEquivalentExceptionSpec()
330 New->getType()->getAs<FunctionProtoType>(), New->getLocation(), in CheckEquivalentExceptionSpec()
338 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec()
339 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch) in CheckEquivalentExceptionSpec()
352 const auto *NewProto = New->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
367 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
390 New->setInvalidDecl(); in CheckEquivalentExceptionSpec()
394 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
402 } else if (New->isReplaceableGlobalAllocationFunction() && in CheckEquivalentExceptionSpec()
469 if (TypeSourceInfo *TSInfo = New->getTypeSourceInfo()) { in CheckEquivalentExceptionSpec()
479 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
480 << New << OS.str(); in CheckEquivalentExceptionSpec()
482 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
483 << New << OS.str() in CheckEquivalentExceptionSpec()
499 const FunctionProtoType *New, SourceLocation NewLoc) { in CheckEquivalentExceptionSpec() argument
508 Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec()
525 const FunctionProtoType *New, SourceLocation NewLoc, in CheckEquivalentExceptionSpecImpl() argument
538 New = S.ResolveExceptionSpec(NewLoc, New); in CheckEquivalentExceptionSpecImpl()
539 if (!New) in CheckEquivalentExceptionSpecImpl()
562 ExceptionSpecificationType NewEST = New->getExceptionSpecType(); in CheckEquivalentExceptionSpecImpl()
569 CanThrowResult NewCanThrow = New->canThrow(); in CheckEquivalentExceptionSpecImpl()
595 New->getNoexceptExpr()->Profile(NewFSN, S.Context, true); in CheckEquivalentExceptionSpecImpl()
610 for (const auto &I : New->exceptions()) { in CheckEquivalentExceptionSpecImpl()
630 WithExceptions = New; in CheckEquivalentExceptionSpecImpl()
677 const FunctionProtoType *New, in CheckEquivalentExceptionSpec() argument
682 New, NewLoc); in CheckEquivalentExceptionSpec()
969 bool Sema::CheckOverridingFunctionExceptionSpec(const CXXMethodDecl *New, in CheckOverridingFunctionExceptionSpec() argument
973 if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() == in CheckOverridingFunctionExceptionSpec()
979 if (isa<CXXDestructorDecl>(New) && New->getParent()->isDependentType()) in CheckOverridingFunctionExceptionSpec()
986 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckOverridingFunctionExceptionSpec()
987 DelayedOverridingExceptionSpecChecks.push_back({New, Old}); in CheckOverridingFunctionExceptionSpec()
1000 New->getType()->castAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
1001 New->hasCXXExplicitFunctionObjectParameter(), New->getLocation()); in CheckOverridingFunctionExceptionSpec()