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

Delesley Hutchins delesley at google.com
Wed Feb 22 13:49:22 PST 2012


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 --------------
A non-text attachment was scrubbed...
Name: clang-late-parse-multidecl.patch
Type: text/x-patch
Size: 9272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120222/26cfec69/attachment.bin>


More information about the cfe-commits mailing list