Lines Matching refs:Old
206 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
223 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(),
232 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) {
234 << hasImplicitExceptionSpec(Old);
235 if (Old->getLocation().isValid())
236 Diag(Old->getLocation(), diag::note_previous_declaration);
258 (Old->getLocation().isInvalid() ||
259 Context.getSourceManager().isInSystemHeader(Old->getLocation())) &&
260 Old->isExternC()) {
268 Old->getType()->castAs<FunctionProtoType>();
276 // For computed noexcept, we can't just take the expression from the old
277 // prototype. It likely contains references to the old prototype's
360 if (Old->getLocation().isValid())
361 Diag(Old->getLocation(), diag::note_previous_declaration);
371 const FunctionProtoType *Old, SourceLocation OldLoc,
377 PDiag(diag::note_previous_declaration), Old, OldLoc, New, NewLoc);
393 const FunctionProtoType *Old,
411 Old = ResolveExceptionSpec(NewLoc, Old);
412 if (!Old)
437 ExceptionSpecificationType OldEST = Old->getExceptionSpecType();
448 FunctionProtoType::NoexceptResult OldNR = Old->getNoexceptSpec(Context);
503 // This is because the implicit declaration changed, but old code would break.
509 WithExceptions = Old;
529 if (MissingExceptionSpecification && Old->hasExceptionSpec() &&
531 // The old type has an exception specification of some sort, but
536 // The old type has a throw() or noexcept(true) exception specification
558 for (const auto &I : Old->exceptions())
828 const CXXMethodDecl *Old) {
842 DelayedExceptionSpecChecks.push_back(std::make_pair(New, Old));
846 // If the old exception specification hasn't been parsed yet, remember that
849 if (Old->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() ==
851 DelayedExceptionSpecChecks.push_back(std::make_pair(New, Old));
859 Old->getType()->getAs<FunctionProtoType>(),
860 Old->getLocation(),