// Called from Sema::ParseStartOfFunctionDef().
ParmVarDecl *
-Sema::ActOnParamDeclarator(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.
// Can this happen for params? We already checked that they don't conflict
ParmVarDecl *New = new ParmVarDecl(PI.IdentLoc, II, parmDeclType,
VarDecl::None, 0);
- // FIXME: Handle attributes
if (PI.InvalidType)
New->setInvalidDecl();
FnScope->AddDecl(New);
}
+ HandleDeclAttributes(New, PI.AttrList, 0);
return New;
}