[PATCH] Improve attributes printing.
fragmentshaders at gmail.com
Mon Feb 11 14:24:18 PST 2013
This patch improves attribute printing by taking the source location of attributes into account when print them out. Previously, we hard code the print out locations for attributes and this has some issues especially for C++11 attributes for example:
void foo [[noreturn]] (); would be printed out as
void foo () [[noreturn]]; which has a different semantic with source.
This patch uses the source locations of the attributes and VarDecl / FunctionDecl to print out attributes at expected locations as described in source files. It also fixes several FIXMEs in existing tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 14590 bytes
Desc: not available
More information about the cfe-commits