Lines Matching refs:New

266     const FunctionProtoType *New, SourceLocation NewLoc,
291 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument
298 OverloadedOperatorKind OO = New->getDeclName().getCXXOverloadedOperator(); in CheckEquivalentExceptionSpec()
313 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckEquivalentExceptionSpec()
314 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); in CheckEquivalentExceptionSpec()
323 New->getType()->getAs<FunctionProtoType>(), New->getLocation(), in CheckEquivalentExceptionSpec()
331 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec()
332 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch) in CheckEquivalentExceptionSpec()
345 const auto *NewProto = New->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
360 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
383 New->setInvalidDecl(); in CheckEquivalentExceptionSpec()
387 New->setType(Context.getFunctionType( in CheckEquivalentExceptionSpec()
395 } else if (New->isReplaceableGlobalAllocationFunction() && in CheckEquivalentExceptionSpec()
462 if (TypeSourceInfo *TSInfo = New->getTypeSourceInfo()) { in CheckEquivalentExceptionSpec()
472 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
473 << New << OS.str(); in CheckEquivalentExceptionSpec()
475 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec()
476 << New << OS.str() in CheckEquivalentExceptionSpec()
492 const FunctionProtoType *New, SourceLocation NewLoc) { in CheckEquivalentExceptionSpec() argument
501 Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec()
518 const FunctionProtoType *New, SourceLocation NewLoc, in CheckEquivalentExceptionSpecImpl() argument
531 New = S.ResolveExceptionSpec(NewLoc, New); in CheckEquivalentExceptionSpecImpl()
532 if (!New) in CheckEquivalentExceptionSpecImpl()
555 ExceptionSpecificationType NewEST = New->getExceptionSpecType(); in CheckEquivalentExceptionSpecImpl()
562 CanThrowResult NewCanThrow = New->canThrow(); in CheckEquivalentExceptionSpecImpl()
588 New->getNoexceptExpr()->Profile(NewFSN, S.Context, true); in CheckEquivalentExceptionSpecImpl()
603 for (const auto &I : New->exceptions()) { in CheckEquivalentExceptionSpecImpl()
623 WithExceptions = New; in CheckEquivalentExceptionSpecImpl()
670 const FunctionProtoType *New, in CheckEquivalentExceptionSpec() argument
675 New, NewLoc); in CheckEquivalentExceptionSpec()
960 bool Sema::CheckOverridingFunctionExceptionSpec(const CXXMethodDecl *New, in CheckOverridingFunctionExceptionSpec() argument
964 if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() == in CheckOverridingFunctionExceptionSpec()
970 if (isa<CXXDestructorDecl>(New) && New->getParent()->isDependentType()) in CheckOverridingFunctionExceptionSpec()
977 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckOverridingFunctionExceptionSpec()
978 DelayedOverridingExceptionSpecChecks.push_back({New, Old}); in CheckOverridingFunctionExceptionSpec()
991 New->getType()->castAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
992 New->getLocation()); in CheckOverridingFunctionExceptionSpec()