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

Aaron Ballman aaron at aaronballman.com
Mon Feb 20 16:41:10 PST 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeclspecEnum.patch
Type: application/octet-stream
Size: 1505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120220/28f23626/attachment.obj>


More information about the cfe-commits mailing list