[PATCH] Attribute consistency

Aaron Ballman aaron at aaronballman.com
Mon Aug 26 18:22:59 PDT 2013


This patch addresses some inconsistencies between inheritable and
non-inheritable attributes.  Currently, the CUDAHost and CUDADevice
attributes are specified as inheritable in Attr.td, but processed as
NonInheritable in SemaDeclAttr.cpp.  Similarly, Mode is specified as
NonInheritable in Attr.td but processed as Inheritable in
SemaDeclAttr.cpp.

This patch makes the processing and the declaration consistent.
However, since I am not that familiar with CUDA or mode attributes, I
wanted to make sure I've not got things backwards or am
misunderstanding a design constraint.

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Attr.patch
Type: application/octet-stream
Size: 1950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130826/4ef6842a/attachment.obj>


More information about the cfe-commits mailing list