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
CleanupAttr.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
