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

Attachment: Declspecs.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to