[PATCH] Consistency for type_tag_for_datatype subject

Aaron Ballman aaron at aaronballman.com
Sun Nov 24 14:18:33 PST 2013


Attr.td claims that type_tag_for_datatype only applies to VarDecl
subjects, but SemaDeclAttr.cpp was not checking for any subject
whatsoever. This patch makes SemaDeclAttr.cpp check for the proper
subject, and adds a testcase for it. However, since I couldn't find
documentation on this attribute, I wasn't certain whether this was the
correct approach, or whether Attr.td had the incorrect subject.

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


More information about the cfe-commits mailing list