[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
Daniel Dunbar
daniel at zuster.org
Fri Oct 3 08:45:51 PDT 2008
I believe so, will do.
On Thu, Oct 2, 2008 at 11:29 PM, Chris Lattner <clattner at apple.com> wrote:
> 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