Searched refs:OldParam (Results 1 – 5 of 5) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseCXXInlineMethods.cpp | 432 ParmVarDecl *OldParam = const_cast<ParmVarDecl*>(Old->getParamDecl(I)); in ParseLexedMethodDeclaration() local 433 assert(!OldParam->hasUnparsedDefaultArg()); in ParseLexedMethodDeclaration() 434 if (OldParam->hasUninstantiatedDefaultArg()) in ParseLexedMethodDeclaration() 436 OldParam->getUninstantiatedDefaultArg()); in ParseLexedMethodDeclaration() 438 Param->setDefaultArg(OldParam->getInit()); in ParseLexedMethodDeclaration()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 2525 for (auto *OldParam : TL.getParams()) { in transformFunctionProtoType() local 2526 ParmVarDecl *NewParam = OldParam; in transformFunctionProtoType() 2591 TypeSourceInfo *OldDI = OldParam->getTypeSourceInfo(); in transformFunctionTypeParam() 2598 OldParam->getLocation(), OldParam->getDeclName()); in transformFunctionTypeParam() 2605 OldParam->getDeclName()); in transformFunctionTypeParam() 2619 if (OldParam->hasDefaultArg()) { in transformFunctionTypeParam() 2636 SemaRef.Context, DC, OldParam->getInnerLocStart(), in transformFunctionTypeParam() 2637 OldParam->getLocation(), OldParam->getIdentifier(), NewType, NewDI, in transformFunctionTypeParam() 2638 OldParam->getStorageClass(), NewDefArg.get()); in transformFunctionTypeParam() 2961 OldParam = OldParams->begin(); in CheckTemplateParameterList() [all …]
|
| H A D | SemaTemplateInstantiateDecl.cpp | 4473 ParmVarDecl *OldParam = OldProtoLoc.getParam(OldIdx); in SubstFunctionType() local 4474 if (!OldParam) in SubstFunctionType() 4480 if (OldParam->isParameterPack()) in SubstFunctionType() 4482 SemaRef.getNumArgumentsInExpansion(OldParam->getType(), in SubstFunctionType() 4489 Scope->InstantiatedLocal(OldParam, NewParam); in SubstFunctionType() 4492 Scope->MakeInstantiatedLocalArgPack(OldParam); in SubstFunctionType() 4496 Scope->InstantiatedLocalPackArg(OldParam, NewParam); in SubstFunctionType() 4508 ParmVarDecl *OldParam = OldProtoLoc.getParam(i); in SubstFunctionType() local 4509 if (!OldParam) { in SubstFunctionType() 4516 cast_or_null<ParmVarDecl>(VisitParmVarDecl(OldParam)); in SubstFunctionType()
|
| H A D | SemaDeclCXX.cpp | 534 ParmVarDecl *OldParam = PrevForDefaultArgs->getParamDecl(p); in MergeCXXFunctionDecl() local 537 bool OldParamHasDfl = OldParam ? OldParam->hasDefaultArg() : false; in MergeCXXFunctionDecl() 552 if (OldParam->hasUninstantiatedDefaultArg()) in MergeCXXFunctionDecl() 556 NewParam->setDefaultArg(OldParam->getInit()); in MergeCXXFunctionDecl() 576 OldParam->hasInheritedDefaultArg(); /**/) { in MergeCXXFunctionDecl() 578 OldParam = Older->getParamDecl(p); in MergeCXXFunctionDecl() 581 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl() 582 << OldParam->getDefaultArgRange(); in MergeCXXFunctionDecl() 593 if (OldParam->hasUnparsedDefaultArg()) in MergeCXXFunctionDecl() 595 else if (OldParam->hasUninstantiatedDefaultArg()) in MergeCXXFunctionDecl() [all …]
|
| H A D | SemaDecl.cpp | 3472 const ParmVarDecl *OldParam, in mergeParamDeclTypes() argument 3474 if (auto Oldnullability = OldParam->getType()->getNullability()) { in mergeParamDeclTypes() 3484 ((OldParam->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in mergeParamDeclTypes() 3486 S.Diag(OldParam->getLocation(), diag::note_previous_declaration); in mergeParamDeclTypes() 3496 const auto *OldParamDT = dyn_cast<DecayedType>(OldParam->getType()); in mergeParamDeclTypes() 3505 S.Diag(OldParam->getLocation(), diag::note_previous_declaration_as) in mergeParamDeclTypes() 4405 ParmVarDecl *OldParam = Old->getParamDecl(i); in MergeCompatibleFunctionDecls() local 4406 mergeParamDeclAttributes(NewParam, OldParam, *this); in MergeCompatibleFunctionDecls() 4407 mergeParamDeclTypes(NewParam, OldParam, *this); in MergeCompatibleFunctionDecls()
|