[cfe-commits] [PATCH] Properly instantiate templatized attributes with Decl arguments.

Delesley Hutchins delesley at google.com
Fri Jan 6 16:00:29 PST 2012


This patch works with my previous patches to instantiate dependent
attributes on templates, and to make thread safety attributes work on
functions that have separate definitions and declarations.  Thread
safety attributes store a pointer to their original Decl, so that
references to function parameters on the original Decl can be
interpreted in the context of the function definition later on.  If
the attribute is attached to a template, then the original Decl
pointer must be updated when the template is instantiated.

Patch is enclosed, and can be found at:

  http://codereview.appspot.com/5526043/

  -DeLesley

-- 
DeLesley Hutchins | Software Engineer | delesley at google.com | 505-206-0315
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-template-attribute-declarg.patch
Type: application/octet-stream
Size: 4448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120106/70d675ae/attachment.obj>


More information about the cfe-commits mailing list