[cfe-dev] Extending printf format string checking to cover ObjC format strings in NSLog

Jean-Daniel Dupas devlists at shadowlab.org
Mon Jun 16 03:42:47 PDT 2008

Le 16 juin 08 à 12:28, Nikita Zhuk a écrit :

> Hello,
> Current printf format string checking is very useful but it's  
> limited to printf -style functions which use C format strings. I  
> would like to propose extending this functionality to cover  
> Objective-C format strings in NSLog function. A simple  
> implementation of this extension is attached to this message.
> Speaking of format strings in ObjC, are there any plans to extend  
> format string checking to cover ObjC methods which accept format  
> strings as one of their arguments, such as various -[NSString  
> initWithFormat:...] methods?
> Best regards,
> Nikita Zhuk

Note that '%@' is also supported in CoreFoundation fonctions:  
CFStringCreateWithFormat() for example. If the format string checking  
is extended, you may considere thoses cases and not  limite it to objc  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080616/2d0e3d6c/attachment.bin>

More information about the cfe-dev mailing list