[cfe-commits] [PATCH] Improved __declspec support

Aaron Ballman aaron at aaronballman.com
Mon Jun 11 12:51:52 PDT 2012


Our support for MSVC-compatible declspecs has been lacking in a few
areas, mostly revolving around diagnostics.  This patch is a
refactoring of the way we handle __declspecs.  It takes a more focused
approach to parsing, allowing us to report errors about unknown
declspecs, cleanly handle some of the "stranger" declspecs such as
property (in the future), and then adds a bit more semantic checking
to the attributes we already support.

I rolled in support for the aligned declspec as part of the testing
for the new functionality (including fixing up John's suggestions
about spelling and number of arguments).  This patch also has several
updated test cases, and paves the way for some future work.

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Declspecs.patch
Type: application/octet-stream
Size: 13703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120611/0e3dd91c/attachment.obj>


More information about the cfe-commits mailing list