[cfe-commits] r45491 - in /cfe/trunk: Parse/Parser.cpp test/Parser/check-syntax-1.m

Fariborz Jahanian fjahanian at apple.com
Thu Jan 3 09:35:42 PST 2008


On Jan 3, 2008, at 5:09 AM, Nico Weber wrote:

>> Issue diagnostic when objective-c's @interface is preceeded by a  
>> type specifier.
>
> Could you explain what the block prefixed with
>
>    // ObjC2 allows prefix attributes on class interfaces.
>
> is good for? What are "prefix attributes on class interfaces"?

These are new Objc2 features. You can have __attribute ((deprecated))   
to indicate that class is deprecated (issues deprecated warning on  
use), for example.

>
>
> With this patch, things like
>
>    auto @interface Bla
>    {
>    }
>
>    @end
>
> or
>
>    register @interface Bla
>    {
>    }
>
>    @end
>
> are still compiled without warning or error, which doesn't look  
> correct to me.

We are still ways to go to catch all errors. Thanks for reporting them  
though.

- Fariborz

>
>
> Nico




More information about the cfe-commits mailing list