Lines Matching refs:Old
212 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument
229 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec()
238 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec()
240 << hasImplicitExceptionSpec(Old); in CheckEquivalentExceptionSpec()
241 if (Old->getLocation().isValid()) in CheckEquivalentExceptionSpec()
242 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec()
264 (Old->getLocation().isInvalid() || in CheckEquivalentExceptionSpec()
265 Context.getSourceManager().isInSystemHeader(Old->getLocation())) && in CheckEquivalentExceptionSpec()
266 Old->isExternC()) { in CheckEquivalentExceptionSpec()
274 Old->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
366 if (Old->getLocation().isValid()) in CheckEquivalentExceptionSpec()
367 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec()
377 const FunctionProtoType *Old, SourceLocation OldLoc, in CheckEquivalentExceptionSpec() argument
383 PDiag(diag::note_previous_declaration), Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec()
399 const FunctionProtoType *Old, in CheckEquivalentExceptionSpec() argument
417 Old = ResolveExceptionSpec(NewLoc, Old); in CheckEquivalentExceptionSpec()
418 if (!Old) in CheckEquivalentExceptionSpec()
443 ExceptionSpecificationType OldEST = Old->getExceptionSpecType(); in CheckEquivalentExceptionSpec()
454 FunctionProtoType::NoexceptResult OldNR = Old->getNoexceptSpec(Context); in CheckEquivalentExceptionSpec()
515 WithExceptions = Old; in CheckEquivalentExceptionSpec()
535 if (MissingExceptionSpecification && Old->hasExceptionSpec() && in CheckEquivalentExceptionSpec()
564 for (const auto &I : Old->exceptions()) in CheckEquivalentExceptionSpec()
834 const CXXMethodDecl *Old) { in CheckOverridingFunctionExceptionSpec() argument
848 DelayedExceptionSpecChecks.push_back(std::make_pair(New, Old)); in CheckOverridingFunctionExceptionSpec()
855 if (Old->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() == in CheckOverridingFunctionExceptionSpec()
857 DelayedExceptionSpecChecks.push_back(std::make_pair(New, Old)); in CheckOverridingFunctionExceptionSpec()
865 Old->getType()->getAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
866 Old->getLocation(), in CheckOverridingFunctionExceptionSpec()