Home | History | Annotate | Download | only in Sema

Lines Matching refs:Old

119 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
130 Old->getType()->getAs<FunctionProtoType>(),
131 Old->getLocation(),
157 (Old->getLocation().isInvalid() ||
158 Context.getSourceManager().isInSystemHeader(Old->getLocation())) &&
159 Old->isExternC()) {
172 = Old->getType()->getAs<FunctionProtoType>();
180 // FIXME: We can't just take the expression from the old prototype. It
181 // likely contains references to the old prototype's parameters.
269 if (!Old->getLocation().isInvalid())
270 Diag(Old->getLocation(), diag::note_previous_declaration);
276 Diag(Old->getLocation(), diag::note_previous_declaration);
285 const FunctionProtoType *Old, SourceLocation OldLoc,
293 Old, OldLoc, New, NewLoc);
300 const FunctionProtoType *Old,
318 Old = ResolveExceptionSpec(NewLoc, Old);
319 if (!Old)
344 ExceptionSpecificationType OldEST = Old->getExceptionSpecType();
355 FunctionProtoType::NoexceptResult OldNR = Old->getNoexceptSpec(Context);
410 // This is because the implicit declaration changed, but old code would break.
416 WithExceptions = Old;
443 if (MissingExceptionSpecification && Old->hasExceptionSpec() &&
445 // The old type has an exception specification of some sort, but
450 // The old type has a throw() or noexcept(true) exception specification
472 for (FunctionProtoType::exception_iterator I = Old->exception_begin(),
473 E = Old->exception_end(); I != E; ++I)
741 const CXXMethodDecl *Old) {
751 cast<CXXDestructorDecl>(New), cast<CXXDestructorDecl>(Old)));
760 Old->getType()->getAs<FunctionProtoType>(),
761 Old->getLocation(),