[cfe-commits] [PATCH] Allow late parsed attributes in more places.

Richard Smith richard at metafoo.co.uk
Fri Mar 2 12:26:07 PST 2012


LGTM

On Wed, Feb 22, 2012 at 1:49 PM, Delesley Hutchins <delesley at google.com>wrote:

> This patch makes late-parsed attributes behave more like ordinary GNU
> attributes, by allowing them to appear in additional places on the
> declarator, including declarators with multiple declarations.
> Currently this change only affects thread safety attributes.   For
> example:
>
> class Foo {
>  int __attribute__((guarded_by(mu))) a, b;   // both a and b are guarded
> by mu_
>  Mutex mu_;
> };
>
>  http://codereview.appspot.com/5687084/
>
> --
> DeLesley Hutchins | Software Engineer | delesley at google.com | 505-206-0315
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120302/7120b4db/attachment.html>


More information about the cfe-commits mailing list