Lines Matching defs:Old
263 const FunctionProtoType *Old, SourceLocation OldLoc,
289 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
311 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) {
312 DelayedEquivalentExceptionSpecChecks.push_back({New, Old});
320 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(),
329 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) {
331 << hasImplicitExceptionSpec(Old);
332 if (Old->getLocation().isValid())
333 Diag(Old->getLocation(), diag::note_previous_declaration);
354 (Old->getLocation().isInvalid() ||
355 Context.getSourceManager().isInSystemHeader(Old->getLocation()) ||
356 Old->getBuiltinID()) &&
357 Old->isExternC()) {
364 const auto *OldProto = Old->getType()->castAs<FunctionProtoType>();
478 if (Old->getLocation().isValid())
479 Diag(Old->getLocation(), diag::note_previous_declaration);
485 const FunctionProtoType *Old, SourceLocation OldLoc,
495 Old, OldLoc, New, NewLoc);
511 const FunctionProtoType *Old, SourceLocation OldLoc,
522 Old = S.ResolveExceptionSpec(NewLoc, Old);
523 if (!Old)
548 ExceptionSpecificationType OldEST = Old->getExceptionSpecType();
555 CanThrowResult OldCanThrow = Old->canThrow();
581 Old->getNoexceptExpr()->Profile(OldFSN, S.Context, true);
594 for (const auto &I : Old->exceptions())
619 WithExceptions = Old;
662 const FunctionProtoType *Old,
668 return CheckEquivalentExceptionSpecImpl(*this, DiagID, NoteID, Old, OldLoc,
949 const CXXMethodDecl *Old) {
965 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) {
966 DelayedOverridingExceptionSpecChecks.push_back({New, Old});
977 Old->getType()->castAs<FunctionProtoType>(),
978 Old->hasCXXExplicitFunctionObjectParameter(), Old->getLocation(),