[cfe-dev] @interface and attributes

Nico Weber thakis at chromium.org
Tue Apr 2 19:51:04 PDT 2013



    class __attribute__((visibility("hidden"))) A {};


    __attribute__((visibility("hidden"))) @interface I @end

In the first case, clang emits a nice fixit if the attribute is written
before the class keyword, while putting the attribute after @interface
makes clang print an ugly diagnostic.

Instead of just making that print a nice fixit too, what do you think about
allowing attributes for @interfaces after the @interface keyword too?

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

More information about the cfe-dev mailing list