Home | History | Annotate | Download | only in Sema

Lines Matching refs:New

90     auto *BoolExpr = new (Context)
262 const FunctionProtoType *New, SourceLocation NewLoc,
287 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
294 OverloadedOperatorKind OO = New->getDeclName().getCXXOverloadedOperator();
309 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) {
310 DelayedEquivalentExceptionSpecChecks.push_back({New, Old});
319 New->getType()->getAs<FunctionProtoType>(), New->getLocation(),
327 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) {
328 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch)
342 New->getType()->castAs<FunctionProtoType>();
344 // The new function declaration is only missing an empty exception
347 // exception specification to the "new" declaration. Note that C library
357 New->setType(Context.getFunctionType(
381 New->setInvalidDecl();
385 New->setType(Context.getFunctionType(
394 } else if (New->isReplaceableGlobalAllocationFunction() &&
457 if (TypeSourceInfo *TSInfo = New->getTypeSourceInfo()) {
467 Diag(New->getLocation(), DiagID)
468 << New << OS.str();
470 Diag(New->getLocation(), DiagID)
471 << New << OS.str()
487 const FunctionProtoType *New, SourceLocation NewLoc) {
496 Old, OldLoc, New, NewLoc);
513 const FunctionProtoType *New, SourceLocation NewLoc,
526 New = S.ResolveExceptionSpec(NewLoc, New);
527 if (!New)
550 ExceptionSpecificationType NewEST = New->getExceptionSpecType();
557 CanThrowResult NewCanThrow = New->canThrow();
583 New->getNoexceptExpr()->Profile(NewFSN, S.Context, true);
598 for (const auto &I : New->exceptions()) {
613 // throw(std::bad_alloc) as equivalent for operator new and operator new[].
618 WithExceptions = New;
637 // If the caller wants to handle the case that the new function is
642 // the new type does not.
647 // and the new type has no exception specification, and the caller asked
665 const FunctionProtoType *New,
670 New, NewLoc);
955 bool Sema::CheckOverridingFunctionExceptionSpec(const CXXMethodDecl *New,
957 // If the new exception specification hasn't been parsed yet, skip the check.
959 if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() ==
965 if (isa<CXXDestructorDecl>(New) && New->getParent()->isDependentType())
968 // If the old exception specification hasn't been parsed yet, or the new
972 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) {
973 DelayedOverridingExceptionSpecChecks.push_back({New, Old});
986 New->getType()->castAs<FunctionProtoType>(),
987 New->getLocation());