Hello,

Here is a patch to fix 2 issues:
- format strings attributes are not checked on obj-c methods.
- format attribute using NSString and CFString format are not checked at all.

This patch add a CheckObjCMethodCall() member to Sema that mirrors 
CheckFunctionCall() but work for obj-c method call and not function call.

To match the CheckFunctionCall() function, this new function handle "format" 
attributes (which was not handled yet), and "non null" attributes (which was 
previously handled in SemaObjC).

The second issue is that CheckablePrintfAttr() return true only if the format 
is printf, but should also returns true for NSString and CFString formats.

Please, can somebody review it, and apply it if it is fine.
Thanks.

-- Jean-Daniel



Attachment: objc-format.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to