[cfe-commits] r56992 - in /cfe/trunk: Driver/PrintParserCallbacks.cpp lib/AST/ASTContext.cpp lib/Parse/ParseDecl.cpp lib/Parse/ParseObjc.cpp lib/Sema/Sema.h lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp

Chris Lattner clattner at apple.com
Thu Oct 2 23:29:18 PDT 2008


On Oct 2, 2008, at 7:03 PM, Daniel Dunbar wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=56992&view=rev
> Log:
> Pass postfix attributes to ActOnFields.

Nice,

>
>   AttributeList *AttrList = 0;
>   // If attributes exist after struct contents, parse them.
>   if (Tok.is(tok::kw___attribute))
>     AttrList = ParseAttributes(); // FIXME: where should I put them?

Should this fixme go away now?

>
> +
> +  Actions.ActOnFields(CurScope,
> +                       
> RecordLoc,TagDecl,&FieldDecls[0],FieldDecls.size(),
> +                      LBraceLoc, RBraceLoc,
> +                      AttrList);

-Chris



More information about the cfe-commits mailing list