Home
last modified time | relevance | path

Searched refs:OldParam (Results 1 – 5 of 5) sorted by relevance

/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp386 ParmVarDecl *OldParam = Old->getParamDecl(I); in ParseLexedMethodDeclaration() local
387 assert (!OldParam->hasUnparsedDefaultArg()); in ParseLexedMethodDeclaration()
388 if (OldParam->hasUninstantiatedDefaultArg()) in ParseLexedMethodDeclaration()
390 OldParam->getUninstantiatedDefaultArg()); in ParseLexedMethodDeclaration()
392 Param->setDefaultArg(OldParam->getInit()); in ParseLexedMethodDeclaration()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp3219 ParmVarDecl *OldParam = OldProtoLoc.getParam(OldIdx); in SubstFunctionType() local
3223 if (OldParam->isParameterPack()) in SubstFunctionType()
3225 SemaRef.getNumArgumentsInExpansion(OldParam->getType(), in SubstFunctionType()
3232 Scope->InstantiatedLocal(OldParam, NewParam); in SubstFunctionType()
3235 Scope->MakeInstantiatedLocalArgPack(OldParam); in SubstFunctionType()
3239 Scope->InstantiatedLocalPackArg(OldParam, NewParam); in SubstFunctionType()
3251 ParmVarDecl *OldParam = OldProtoLoc.getParam(i); in SubstFunctionType() local
3252 if (!OldParam) { in SubstFunctionType()
3259 cast_or_null<ParmVarDecl>(VisitParmVarDecl(OldParam)); in SubstFunctionType()
DSemaDeclCXX.cpp500 ParmVarDecl *OldParam = PrevForDefaultArgs->getParamDecl(p); in MergeCXXFunctionDecl() local
503 bool OldParamHasDfl = OldParam ? OldParam->hasDefaultArg() : false; in MergeCXXFunctionDecl()
518 if (OldParam->hasUninstantiatedDefaultArg()) in MergeCXXFunctionDecl()
520 OldParam->getUninstantiatedDefaultArg()); in MergeCXXFunctionDecl()
522 NewParam->setDefaultArg(OldParam->getInit()); in MergeCXXFunctionDecl()
542 OldParam->hasInheritedDefaultArg(); /**/) { in MergeCXXFunctionDecl()
544 OldParam = Older->getParamDecl(p); in MergeCXXFunctionDecl()
547 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl()
548 << OldParam->getDefaultArgRange(); in MergeCXXFunctionDecl()
554 if (OldParam->hasUnparsedDefaultArg()) in MergeCXXFunctionDecl()
[all …]
DSemaTemplate.cpp1325 TemplateParameterList::iterator OldParam = NewParams->end(); in CheckTemplateParameterList() local
1327 OldParam = OldParams->begin(); in CheckTemplateParameterList()
1356 = OldParams? cast<TemplateTypeParmDecl>(*OldParam) : nullptr; in CheckTemplateParameterList()
1399 = OldParams? cast<NonTypeTemplateParmDecl>(*OldParam) : nullptr; in CheckTemplateParameterList()
1441 = OldParams? cast<TemplateTemplateParmDecl>(*OldParam) : nullptr; in CheckTemplateParameterList()
1503 ++OldParam; in CheckTemplateParameterList()
DSemaDecl.cpp2561 const ParmVarDecl *OldParam, in mergeParamDeclTypes() argument
2563 if (auto Oldnullability = OldParam->getType()->getNullability(S.Context)) { in mergeParamDeclTypes()
2573 ((OldParam->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in mergeParamDeclTypes()
2575 S.Diag(OldParam->getLocation(), diag::note_previous_declaration); in mergeParamDeclTypes()
3281 ParmVarDecl *OldParam = Old->getParamDecl(i); in MergeCompatibleFunctionDecls() local
3282 mergeParamDeclAttributes(NewParam, OldParam, *this); in MergeCompatibleFunctionDecls()
3283 mergeParamDeclTypes(NewParam, OldParam, *this); in MergeCompatibleFunctionDecls()