[cfe-commits] [PATCH] Parsing __declspec properly for enumerations

Douglas Gregor dgregor at apple.com
Wed Mar 14 10:30:33 PDT 2012


LGTM, but can you add a test illustrating that the 'deprecated' attribute actually sticks to the enumeration type?

	- Doug

On Feb 20, 2012, at 4:41 PM, Aaron Ballman wrote:

> This is a patch to address Bug 8783 -- declspecs can be placed on enum
> declarations as well.  To clarify:
> 
> __declspec(foo) enum E { x, y } e;  // Puts foo on e
> enum __declspec(foo) enum E { x, y } e;  // Puts foo on E
> 
> This is important for supporting the deprecated declspec.  Class,
> struct and union already function properly.
> 
> ~Aaron
> <DeclspecEnum.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list