void AddTopLevelDecl(Decl *current, Decl *last);
/// More parsing and symbol table subroutines...
- ParmVarDecl *ParseParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
+ ParmVarDecl *ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
Scope *FnBodyScope);
ScopedDecl *LookupScopedDecl(IdentifierInfo *II, unsigned NSI,
SourceLocation IdLoc, Scope *S);
// Called from Sema::ParseStartOfFunctionDef().
ParmVarDecl *
-Sema::ParseParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope)
+Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope)
{
IdentifierInfo *II = PI.Ident;
// TODO: CHECK FOR CONFLICTS, multiple decls with same name in one scope.
// empty arg list, don't push any params.
} else {
for (unsigned i = 0, e = FTI.NumArgs; i != e; ++i) {
- Params.push_back(ParseParamDeclarator(D.getTypeObject(0).Fun.ArgInfo[i],
+ Params.push_back(ActOnParamDeclarator(D.getTypeObject(0).Fun.ArgInfo[i],
FnBodyScope));
}
}
PI.TypeInfo = selfTy.getAsOpaquePtr();
} else
PI.TypeInfo = Context.getObjcIdType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
PI.Ident = &Context.Idents.get("_cmd");
PI.TypeInfo = Context.getObjcSelType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
for (int i = 0; i < MDecl->getNumParams(); i++) {
ParmVarDecl *PDecl = MDecl->getParamDecl(i);
PI.Ident = PDecl->getIdentifier();
PI.IdentLoc = PDecl->getLocation(); // user vars have a real location.
PI.TypeInfo = PDecl->getType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
}
NewFD->setParams(&Params[0], Params.size());
}
//
// Perform the default function/array conversion (C99 6.7.5.3p[7,8]).
// This matches the conversion that is done in
- // Sema::ParseParamDeclarator(). Without this conversion, the
+ // Sema::ActOnParamDeclarator(). Without this conversion, the
// argument type in the function prototype *will not* match the
// type in ParmVarDecl (which makes the code generator unhappy).
//