Home
last modified time | relevance | path

Searched refs:OldProto (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExceptionSpec.cpp366 const auto *OldProto = Old->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec() local
368 FunctionProtoType::ExceptionSpecInfo ESI = OldProto->getExceptionSpecType(); in CheckEquivalentExceptionSpec()
372 ESI.Exceptions = OldProto->exceptions(); in CheckEquivalentExceptionSpec()
418 switch (OldProto->getExceptionSpecType()) { in CheckEquivalentExceptionSpec()
426 for (const auto &E : OldProto->exceptions()) { in CheckEquivalentExceptionSpec()
446 assert(OldProto->getNoexceptExpr() != nullptr && "Expected non-null Expr"); in CheckEquivalentExceptionSpec()
447 OldProto->getNoexceptExpr()->printPretty(OS, nullptr, getPrintingPolicy()); in CheckEquivalentExceptionSpec()
H A DSemaDecl.cpp4097 const FunctionProtoType *OldProto = nullptr; in MergeFunctionDecl() local
4099 (OldProto = dyn_cast<FunctionProtoType>(OldFuncType))) { in MergeFunctionDecl()
4102 assert(!OldProto->hasExceptionSpec() && "Exception spec in C"); in MergeFunctionDecl()
4103 SmallVector<QualType, 16> ParamTypes(OldProto->param_types()); in MergeFunctionDecl()
4106 OldProto->getExtProtoInfo()); in MergeFunctionDecl()
4112 for (const auto &ParamType : OldProto->param_types()) { in MergeFunctionDecl()
4150 const FunctionProtoType *OldProto in MergeFunctionDecl() local
4156 QualType MergedReturn = Context.mergeTypes(OldProto->getReturnType(), in MergeFunctionDecl()
4190 OldProto->getExtProtoInfo())); in MergeFunctionDecl()
H A DSemaTemplateInstantiateDecl.cpp4377 const FunctionProtoType *OldProto = in SubstFunctionType() local
4384 D, D->getLocation(), OldProto->getParamType(i))); in SubstFunctionType()