[cfe-dev] [PATCH] extend __interface support

John McCall rjmccall at apple.com
Mon Aug 13 02:06:39 PDT 2012


On Aug 13, 2012, at 1:20 AM, João Matos wrote:
> On Mon, Aug 13, 2012 at 8:11 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
> Do clang's diagnostics with your patch match MSVC's diagnostics for
> examples like the following?
> 
> __interface X;
> struct X;
> __interface Y;
> class Y;
> 
> MSVC does not seem to emit any diagnostics in these cases, although maybe we should (maybe a warning).
> 
> 
>  On Mon, Aug 13, 2012 at 8:39 AM, John McCall <rjmccall at apple.com> wrote:
> Is this implicitly an answer to my previous message?  That is, are you
> saying that __interface cannot be used in elaborated type specifiers?
> Please do test this;  the right way to model this feature depends on
> how it fits in the language.
> 
> John.
> 
> I tested this and __interface can be used as an elaborated type specifier.

Thanks.  In that case, I definitely don't think we want to model this with
macros and attributes — MSVC is clearly treating __interface as a fourth
kind of class-key, and that's the appropriate way to model it.

John.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120813/cb2c9453/attachment.html>


More information about the cfe-dev mailing list