[PATCH] Cleanup attribute using resolved identifiers

Aaron Ballman aaron at aaronballman.com
Wed Sep 4 07:47:34 PDT 2013


The cleanup attribute was using an unresolved, simple identifier as
its sole argument.  However, while processing the attribute, we would
attempt to look up the simple identifier, flag its usage, etc as
though it were a resolved identifier.  This patch removes the custom
logic from SemaDeclAttr.cpp and simply uses a resolved identifier
(DeclRefExpr) for the argument.  I've added some extra test cases
since this expands what can be used as an argument to cleanup.

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


More information about the cfe-commits mailing list