[cfe-dev] improve attributes handling in clang

Michael Han Michael.Han at autodesk.com
Thu Dec 2 02:16:53 PST 2010


That'll be even better! Thanks Sean and we are already benefit from your work on attributes :-)

Cheers
~Michael

-----Original Message-----
From: Sean Hunt [mailto:rideau3 at gmail.com] 
Sent: Thursday, December 02, 2010 6:12 PM
To: Michael Han
Cc: Douglas Gregor; cfe-dev at cs.uiuc.edu; Hippocrates code verification project
Subject: Re: improve attributes handling in clang

On 10-12-02 04:55 AM, Michael Han wrote:
> I think one improvement would be to move the AttributeList::Kind in Sema into td file so codes like AttributeList::getKind can be generated through tblgen. If this is done then adding an implementation defined (gnu style) attribute would only require user modify the attribute table definition file (with user's code to handle attributes in Sema but that's not part of infrastructure anyway). Currently when we add our attributes we need to visit several places in Sema to fix the boilerplate code.
>
> Cheers
> ~Michael

My intent is to remove AttributeList entirely. Especially now that we 
have removed the Parser/Sema barrier, it makes no sense to have two 
separate data structures for the same thing.

Sean




More information about the cfe-dev mailing list