[cfe-dev] cleanup attribute argument checking

Eli Friedman eli.friedman at gmail.com
Tue Feb 24 10:19:24 PST 2009


On Tue, Feb 24, 2009 at 9:39 AM, Jean-Daniel Dupas
<devlists at shadowlab.org> wrote:
>   // We're currently more strict than GCC about what function types we
> accept.
>   // If this ever proves to be a problem it should be easy to fix.
>   QualType Ty = S.Context.getPointerType(VD->getType());
>   QualType ParamTy = FD->getParamDecl(0)->getType();
>   if (Ty != ParamTy) {

This should probably be using Sema::CheckAssignmentConstraints or
something like that.

-Eli




More information about the cfe-dev mailing list