[PATCH] Correcting attribute argument count errors

Aaron Ballman aaron at aaronballman.com
Thu Jul 18 11:20:01 PDT 2013


While doing some refactoring with the way attributes are diagnosed, I
noticed that the NSObject and Overloadable attributes seemed to emit
an incorrect diagnostic.  Specifically, both would check that no
arguments were passed, but then proceed to emit a diagnostic
suggesting that an argument was required.

This patch corrects the behavior so that the diagnostic matches the
expectation, and adds test cases for both attributes.

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


More information about the cfe-commits mailing list